Skip to content

Commit

Permalink
Adjust frequency of mtENDPOINTS messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nbougalis authored and manojsdoshi committed May 27, 2020
1 parent 9771210 commit 9f91870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ripple/peerfinder/impl/Tuning.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/unit_test/SuiteJournal.h
Expand Up @@ -98,7 +98,7 @@ class SuiteJournal
: sink_(partition, threshold, suite), journal_(sink_)
{
}
operator beast::Journal &()
operator beast::Journal&()
{
return journal_;
}
Expand Down

0 comments on commit 9f91870

Please sign in to comment.