Skip to content

Commit

Permalink
fix ringpop.stat call
Browse files Browse the repository at this point in the history
  • Loading branch information
benfleis committed Feb 18, 2016
1 parent 25e2380 commit bcb9949
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/stats-periodic.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function PeriodicStats(ringpop, options) {
this.ringpop = ringpop;
this.options = options;
this.logger = ringpop.logger;
this.stat = ringpop.stat;
this.timers = this.options.timers || ringpop.timers || timers;
this.running = false;

Expand All @@ -70,7 +69,7 @@ PeriodicStats.prototype.start = function start() {
function emitChecksum() {
var checksum = self.ringpop.ring.checksum;
if (checksum !== null && checksum !== undefined) {
self.stat('gauge', 'ring.checksum-periodic', checksum);
self.ringpop.stat('gauge', 'ring.checksum-periodic', checksum);
}
}
}
Expand Down

0 comments on commit bcb9949

Please sign in to comment.