Skip to content

Commit

Permalink
Permit alternate ring implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Oct 5, 2015
1 parent 31ab59b commit 98bd2ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ function RingPop(options) {
this.statsd = options.statsd || nulls.statsd;
this.bootstrapFile = options.bootstrapFile;
this.setTimeout = options.setTimeout || globalSetTimeout;
this.Ring = options.Ring || HashRing;

this.isReady = false;

Expand All @@ -129,7 +130,7 @@ function RingPop(options) {
enforceConsistency: options.enforceConsistency
});

this.ring = new HashRing();
this.ring = new this.Ring();

this.dissemination = new Dissemination(this);

Expand Down

0 comments on commit 98bd2ff

Please sign in to comment.