akane 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/akane/receivers/stream.rb +2 -2
- data/lib/akane/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9121655a6544578e0128be2cb76caca158138f2e
|
4
|
+
data.tar.gz: '08c7694d392754018502adeee4c4cf34a528b812'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b512d3d218a65d90cf1d90fd49a6de6f32fe55e749e7890b3adff6b0c6d4650a081d9fde11a6ebcc823bc810f2d4076c4a8b9795437ddc375354b02f8e071e7
|
7
|
+
data.tar.gz: 6736352337a95f406157ad57f4c840498966ad9672884e0fb1e75948d6c05696ece7b6f40f8a09169716e1b64987762d26de5adbd92fc57bca79c1bcdb0d61ba
|
@@ -83,9 +83,9 @@ module Akane
|
|
83
83
|
# reconnecting https://dev.twitter.com/streaming/overview/connecting
|
84
84
|
case e
|
85
85
|
when Twitter::Error::EnhanceYourCalm # 420
|
86
|
-
interval =
|
86
|
+
interval = 60 * (2 ** (@retry_count - 1))
|
87
87
|
when Twitter::Error
|
88
|
-
interval = [320, 5 ** @retry_count].min
|
88
|
+
interval = [320, 5 * (2 ** (@retry_count - 1))].min
|
89
89
|
else
|
90
90
|
interval = [16, 0.25 * @retry_count].min
|
91
91
|
end
|
data/lib/akane/version.rb
CHANGED