Skip to content

Commit

Permalink
Update comment and stat name
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Dec 16, 2015
1 parent f7aea35 commit 72092d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/gossip/dissemination.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ Dissemination.prototype.issueAsSender = function issueAsSender(issue) {
});

issue(membershipChanges, function onIssue(err) {
// Raise the piggyback count if the local change has been sent
// successfully. When the local change has been updated we don't
// want to raise the piggyback count. We can deduce if the change
// has been updated by comparing the id's of the changes.
// Bump the piggyback count only when we get confirmation that
// dissemination was successful.
if (err) {
self.ringpop.stat('increment', 'dont-bump-piggyback-count');
self.ringpop.stat('increment', 'dissemination.bump-bypass');
self.logger.info('ringpop dissemination not bumping piggyback count', {
local: self.ringpop.whoami(),
err: err,
Expand Down

0 comments on commit 72092d0

Please sign in to comment.