fix rand call
This commit is contained in:
1 parent
474167c5ce
commit
5326f5c2a7
1 file changed
+1
-1
@@ -594,7 +594,7 @@ module Google
|
||||
tries = 1 + (options[:retries] || self.retries)
|
||||
Retriable.retriable :tries => tries,
|
||||
:on => [TransmissionError],
|
||||
:interval => lambda {|attempts| (2 ** attempts) + Random.rand} do
|
||||
:interval => lambda {|attempts| (2 ** attempts) + rand} do
|
||||
result = request.send(connection, true)
|
||||
|
||||
case result.status
|
||||
|
||||
Reference in new issue
Block a user