Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Change ballot commit interval to [1s..5m] #47

Merged
merged 2 commits into from
Apr 4, 2018
Merged

Conversation

mrose17
Copy link
Contributor

@mrose17 mrose17 commented Apr 4, 2018

No description provided.

@mrose17 mrose17 requested a review from NejcZdovc April 4, 2018 03:43
@mrose17 mrose17 self-assigned this Apr 4, 2018
index.js Outdated
@@ -1129,12 +1130,13 @@ Client.prototype._prepareBallot = function (ballot, transaction, callback) {
ballot.prepareBallot = underscore.defaults(body, { server: self.options.server })

now = underscore.now()
delayTime = random.randomInt({ min: msecs.second, max: self.options.debugP ? msecs.minute : 3 * msecs.hour })
delayTime = random.randomInt({ min: 10 * msecs.second, max: (this.options.debugP ? 1 : 5) * msecs.minute })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this intentionally changed from self to this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch! fixed.

@mrose17 mrose17 merged commit 5458396 into master Apr 4, 2018
@mrose17 mrose17 deleted the better-voting-backoff branch April 4, 2018 11:30
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants