Skip to content

Commit

Permalink
fix: allow to set randomizationFactor to 0 (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
vks-jrobertson authored and darrachequesne committed Jul 29, 2021
1 parent 7326bd5 commit dfb46b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class Manager<
this.reconnectionAttempts(opts.reconnectionAttempts || Infinity);
this.reconnectionDelay(opts.reconnectionDelay || 1000);
this.reconnectionDelayMax(opts.reconnectionDelayMax || 5000);
this.randomizationFactor(opts.randomizationFactor || 0.5);
this.randomizationFactor(opts.randomizationFactor ?? 0.5);
this.backoff = new Backoff({
min: this.reconnectionDelay(),
max: this.reconnectionDelayMax(),
Expand Down

0 comments on commit dfb46b5

Please sign in to comment.