mirror of https://github.com/jpillora/backoff.git
Fix compilation issue and formatting
This commit is contained in:
parent
d634e7dfab
commit
153e0dbc3b
10
backoff.go
10
backoff.go
|
@ -16,22 +16,22 @@ import (
|
||||||
// be used concurrently.
|
// be used concurrently.
|
||||||
type Backoff struct {
|
type Backoff struct {
|
||||||
attempt uint64
|
attempt uint64
|
||||||
|
|
||||||
// Factor is the multiplying factor for each increment step.
|
// Factor is the multiplying factor for each increment step.
|
||||||
//
|
//
|
||||||
// Defaults to 2.
|
// Defaults to 2.
|
||||||
Factor float64
|
Factor float64
|
||||||
|
|
||||||
// Jitter eases contention by randomizing backoff steps.
|
// Jitter eases contention by randomizing backoff steps.
|
||||||
//
|
//
|
||||||
// Defaults to false.
|
// Defaults to false.
|
||||||
Jitter bool
|
Jitter bool
|
||||||
|
|
||||||
// Minimum value of the counter.
|
// Minimum value of the counter.
|
||||||
//
|
//
|
||||||
// Defaults to 100 milliseconds.
|
// Defaults to 100 milliseconds.
|
||||||
Min
|
Min time.Duration
|
||||||
|
|
||||||
// Maximum value of the counter.
|
// Maximum value of the counter.
|
||||||
//
|
//
|
||||||
// Defaults to 10 seconds.
|
// Defaults to 10 seconds.
|
||||||
|
|
Loading…
Reference in New Issue