fix rand call

This commit is contained in:
Steven Bazyl committed 2014-01-22 15:09:22 -08:00
1 parent 474167c5ce
commit 5326f5c2a7
1 file changed
+1 -1
+1 -1
View File
@@ -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