From 9b718f27f9f20cdf58c8fe786453a7bfa1dc5dcb Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 9 May 2018 20:52:44 -0400 Subject: [PATCH] Fix retryable dep --- vendor/github.com/hashicorp/go-retryablehttp/client.go | 4 ++-- vendor/vendor.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vendor/github.com/hashicorp/go-retryablehttp/client.go b/vendor/github.com/hashicorp/go-retryablehttp/client.go index d5be4dbc3b..f201b9f310 100644 --- a/vendor/github.com/hashicorp/go-retryablehttp/client.go +++ b/vendor/github.com/hashicorp/go-retryablehttp/client.go @@ -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 diff --git a/vendor/vendor.json b/vendor/vendor.json index cfb4e74c96..bd4519345f 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -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=",