Skip to content

Commit

Permalink
Merge pull request #2168 from graydon/straggling-straggler-metric
Browse files Browse the repository at this point in the history
Remove redundant -- one might say "straggling" -- copy of straggler metric.

Reviewed-by: MonsieurNicolas
  • Loading branch information
latobarita authored Jun 21, 2019
2 parents b260f7e + 5f29998 commit 19cf49b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/overlay/Peer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ Peer::Peer(Application& app, PeerRole role)
, mLastRead(app.getClock().now())
, mLastWrite(app.getClock().now())
, mLastEmpty(app.getClock().now())
, mTimeoutStraggler(app.getMetrics().NewMeter(
{"overlay", "timeout", "straggler"}, "timeout"))
{
auto bytes = randomBytes(mSendNonce.size());
std::copy(bytes.begin(), bytes.end(), mSendNonce.begin());
Expand Down
1 change: 0 additions & 1 deletion src/overlay/Peer.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class Peer : public std::enable_shared_from_this<Peer>,
VirtualClock::time_point mLastEmpty;

OverlayMetrics& getOverlayMetrics();
medida::Meter& mTimeoutStraggler;

bool shouldAbort() const;
void recvMessage(StellarMessage const& msg);
Expand Down

0 comments on commit 19cf49b

Please sign in to comment.