mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Track peer traffic by category
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/overlay/Message.h>
|
||||
#include <ripple/overlay/impl/TrafficCount.h>
|
||||
#include <cstdint>
|
||||
|
||||
namespace ripple {
|
||||
@@ -37,6 +38,9 @@ Message::Message (::google::protobuf::Message const& message, int type)
|
||||
{
|
||||
message.SerializeToArray (&mBuffer [Message::kHeaderBytes], messageBytes);
|
||||
}
|
||||
|
||||
mCategory = static_cast<int>(TrafficCount::categorize
|
||||
(message, type, false));
|
||||
}
|
||||
|
||||
bool Message::operator== (Message const& other) const
|
||||
|
||||
Reference in New Issue
Block a user