Skip to content

Commit

Permalink
call .start() and .stop() from Ringpop / .destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
benfleis committed Feb 17, 2016
1 parent d38461f commit 25e2380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ function RingPop(options) {
registerRingpopListeners(this);

this.periodicStats = new PeriodicStats(this, {timers: timers});
this.periodicStats.start();

this.clientRate = new metrics.Meter();
this.serverRate = new metrics.Meter();
Expand Down Expand Up @@ -204,6 +205,7 @@ RingPop.prototype.destroy = function destroy() {
this.gossip.stop();
this.suspicion.stopAll();
this.membershipUpdateRollup.destroy();
this.periodicStats.stop();
this.requestProxy.destroy();
this.tracers.destroy();

Expand Down

0 comments on commit 25e2380

Please sign in to comment.