Adjust frequency of mtENDPOINTS messages

This commit is contained in:
Nik Bougalis
2020-05-18 08:30:54 -07:00
committed by manojsdoshi
parent 97712107b7
commit 9f91870b1c
2 changed files with 3 additions and 2 deletions

View File

@@ -129,7 +129,8 @@ enum {
};
// How often we send or accept mtENDPOINTS messages per peer
static std::chrono::seconds const secondsPerMessage(5);
// (we use a prime number of purpose)
static std::chrono::seconds const secondsPerMessage(61);
// How long an Endpoint will stay in the cache
// This should be a small multiple of the broadcast frequency

View File

@@ -98,7 +98,7 @@ public:
: sink_(partition, threshold, suite), journal_(sink_)
{
}
operator beast::Journal &()
operator beast::Journal&()
{
return journal_;
}