krakow 0.3.10 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/krakow/consumer.rb +13 -5
- data/lib/krakow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec832b26d703bbb80cc726f4253e665489f1d959
|
4
|
+
data.tar.gz: bc00e4942eff7a0fbf36248fc88166e51cbac638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b372c4ea0551163a44fed973eb1b456dd41f3f219b23f6645117858d77ace6f817f515b880b01d1194cc9316d9b42a4bcbe893c91fa664abf97445e08814fb
|
7
|
+
data.tar.gz: 4046e076dfcfd812796622c37a2ec671be021d2ec842efb6ba7898307c91de0b5eca93b7ee06b210cf96822fee2cf1dc73ff56a72666b7bb2dde77701737aec3
|
data/CHANGELOG.md
CHANGED
data/lib/krakow/consumer.rb
CHANGED
@@ -247,6 +247,9 @@ module Krakow
|
|
247
247
|
rescue KeyError => e
|
248
248
|
error "Message confirmation failed: #{e}"
|
249
249
|
abort e
|
250
|
+
rescue Error::LookupFailed => e
|
251
|
+
error "Lookup of message for confirmation failed! <Message ID: #{message_id} - Error: #{e}>"
|
252
|
+
abort e
|
250
253
|
rescue Error::ConnectionUnavailable => e
|
251
254
|
retry
|
252
255
|
end
|
@@ -280,12 +283,17 @@ module Krakow
|
|
280
283
|
# @return [TrueClass]
|
281
284
|
def touch(message_id)
|
282
285
|
message_id = message_id.message_id if message_id.respond_to?(:message_id)
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
286
|
+
begin
|
287
|
+
distribution.in_flight_lookup(message_id) do |connection|
|
288
|
+
connection.transmit(
|
289
|
+
Command::Touch.new(:message_id => message_id)
|
290
|
+
)
|
291
|
+
end
|
292
|
+
true
|
293
|
+
rescue Error::LookupFailed => e
|
294
|
+
error "Lookup of message for touch failed! <Message ID: #{message_id} - Error: #{e}>"
|
295
|
+
abort e
|
287
296
|
end
|
288
|
-
true
|
289
297
|
end
|
290
298
|
|
291
299
|
end
|
data/lib/krakow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krakow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid-io
|