fix rand call

This commit is contained in:
Steven Bazyl 2014-01-22 15:09:22 -08:00
parent 474167c5ce
commit 5326f5c2a7
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ module Google
tries = 1 + (options[:retries] || self.retries) tries = 1 + (options[:retries] || self.retries)
Retriable.retriable :tries => tries, Retriable.retriable :tries => tries,
:on => [TransmissionError], :on => [TransmissionError],
:interval => lambda {|attempts| (2 ** attempts) + Random.rand} do :interval => lambda {|attempts| (2 ** attempts) + rand} do
result = request.send(connection, true) result = request.send(connection, true)
case result.status case result.status