commit | adb73d5bf0d9237fab19ff58aebf658449e326df | [log] [tgz] |
---|---|---|
author | Harry Pidcock <haza55@gmail.com> | Fri Jun 08 13:49:19 2018 |
committer | Cenk Altı <cenkalti@gmail.com> | Fri Sep 21 06:45:20 2018 |
tree | 4de2c1ebcfae7fd62e75102c16157a1b88c8a6ae | |
parent | b7325b0f3f1097c6546ea5e83c4a23267e58ad71 [diff] |
Removing new random source due to high memory cost. Instead relying on the default random source.
This is a Go port of the exponential backoff algorithm from Google's HTTP Client Library for Java.
Exponential backoff is an algorithm that uses feedback to multiplicatively decrease the rate of some process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.
See https://godoc.org/github.com/cenkalti/backoff#pkg-examples