зеркало из https://github.com/docker/go-events.git
fix alignment for 32bit systems
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Родитель
9461782956
Коммит
d7e97b9abb
2
retry.go
2
retry.go
|
@ -203,8 +203,8 @@ type ExponentialBackoffConfig struct {
|
|||
// ExponentialBackoff implements random backoff with exponentially increasing
|
||||
// bounds as the number consecutive failures increase.
|
||||
type ExponentialBackoff struct {
|
||||
failures uint64 // consecutive failure counter (needs to be 64-bit aligned)
|
||||
config ExponentialBackoffConfig
|
||||
failures uint64 // consecutive failure counter.
|
||||
}
|
||||
|
||||
// NewExponentialBackoff returns an exponential backoff strategy with the
|
||||
|
|
Загрузка…
Ссылка в новой задаче