alephant-publisher 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/publisher/sqs_helper/queue.rb +3 -3
- data/lib/alephant/publisher/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: 987e64cc1358a5b0e29774c6333eb85a6b8785c2
|
4
|
+
data.tar.gz: bf8fc99bd80b93bfb4b13aef60e13fc5817485f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1b13b27fbb64da5c8009d98121de59138f3c7c99f0f3a9b3af8402db168825c5acf886925938f8d79624fbb6e3e527e5fa3aaef6d0a6a80f4f6aa36230e0743
|
7
|
+
data.tar.gz: cc914584dc1f4621964c3f3a6485901f60bdfd459aee7495cf3c6f3dd8f95ff4b3a05c2b3040086af702ba5676c058576f1ac82e8b4ed65e012d56c3656dbb51
|
@@ -18,11 +18,11 @@ module Alephant
|
|
18
18
|
@timeout = timeout
|
19
19
|
@wait_time = wait_time
|
20
20
|
|
21
|
-
logger.
|
21
|
+
logger.debug("Queue#initialize: reading from #{queue.url}")
|
22
22
|
end
|
23
23
|
|
24
24
|
def message
|
25
|
-
|
25
|
+
receive.tap { |m| process(m) unless m.nil? }
|
26
26
|
end
|
27
27
|
|
28
28
|
private
|
@@ -38,7 +38,7 @@ module Alephant
|
|
38
38
|
logger.warn("Queue#archive: archive failed (#{e.message})");
|
39
39
|
end
|
40
40
|
|
41
|
-
def
|
41
|
+
def receive
|
42
42
|
queue.receive_message({
|
43
43
|
:visibility_timeout => timeout,
|
44
44
|
:wait_time_seconds => wait_time
|