mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-18 04:27:02 +02:00
Fix retryable dep
This commit is contained in:
parent
6386f486c3
commit
9b718f27f9
4
vendor/github.com/hashicorp/go-retryablehttp/client.go
generated
vendored
4
vendor/github.com/hashicorp/go-retryablehttp/client.go
generated
vendored
@ -213,7 +213,7 @@ func LinearJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Resp
|
||||
if max <= min {
|
||||
// Unclear what to do here, or they are the same, so return min *
|
||||
// attemptNum
|
||||
return min * attemptNum
|
||||
return min * time.Duration(attemptNum)
|
||||
}
|
||||
|
||||
// Seed rand; doing this every time is fine
|
||||
@ -222,7 +222,7 @@ func LinearJitterBackoff(min, max time.Duration, attemptNum int, resp *http.Resp
|
||||
// Pick a random number that lies somewhere between the min and max and
|
||||
// multiply by the attemptNum. attemptNum starts at zero so we always
|
||||
// increment here.
|
||||
return time.Duration((rand.Int63() % int64(max-min)) * attemptNum)
|
||||
return time.Duration((rand.Int63() % int64(max-min)) * int64(attemptNum))
|
||||
}
|
||||
|
||||
// PassthroughErrorHandler is an ErrorHandler that directly passes through the
|
||||
|
6
vendor/vendor.json
vendored
6
vendor/vendor.json
vendored
@ -1141,10 +1141,10 @@
|
||||
"revisionTime": "2018-03-31T00:25:53Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "Zg/eHcBFPznCeqiRBQeV8WQw9G8=",
|
||||
"checksumSHA1": "3iOEPoU3QvetU5xPFTg+Oqsl+WU=",
|
||||
"path": "github.com/hashicorp/go-retryablehttp",
|
||||
"revision": "936ce55c28f313d8cf79061ffcb25a55bf631eb6",
|
||||
"revisionTime": "2018-05-10T00:49:21Z"
|
||||
"revision": "7d12bb7d610c15e57fbbe304084a87fe87574591",
|
||||
"revisionTime": "2018-05-10T00:52:31Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "A1PcINvF3UiwHRKn8UcgARgvGRs=",
|
||||
|
Loading…
Reference in New Issue
Block a user