action_subscriber 5.1.3.pre1-java → 5.1.3.pre2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_subscriber/message_retry.rb +2 -13
- data/lib/action_subscriber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8825a5aee9ef249779a75bbddaf90debf489a6afe2aea23af9638a5582e34cf
|
4
|
+
data.tar.gz: f488f680b5711d9cc2fee713dffc971d719b743fa4329031f73a57ea3547e46a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3f1a35eddd3e826bd3887ef97fe9bd0380f32d994bd44db5e3c2bdf1f20af76391abbdadc785edd4135ee6258301707940028770b53fba1bd1e3086364c3f8
|
7
|
+
data.tar.gz: 771048790b48ef9fcdb7caa17724e28a7ae72a79d97ed65920c85883094a4f368dad21f1dbf9d371d2e709f31c53f5ebf961df8c11eae973a9e642f282025820
|
@@ -46,19 +46,8 @@ module ActionSubscriber
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.with_exchange(env, ttl, retry_queue_name)
|
49
|
-
|
50
|
-
|
51
|
-
channel = RabbitConnection.with_connection{|connection| connection.create_channel}
|
52
|
-
channel.confirm_select
|
53
|
-
# an empty string is the default exchange [see bunny docs](http://rubybunny.info/articles/exchanges.html#default_exchange)
|
54
|
-
exchange = channel.topic("")
|
55
|
-
queue = channel.queue(retry_queue_name, :arguments => {"x-dead-letter-exchange" => "", "x-message-ttl" => ttl, "x-dead-letter-routing-key" => env.queue})
|
56
|
-
yield(exchange)
|
57
|
-
channel.wait_for_confirms
|
58
|
-
ensure
|
59
|
-
channel.close rescue nil
|
60
|
-
end
|
61
|
-
else
|
49
|
+
channel = env.channel
|
50
|
+
begin
|
62
51
|
channel.confirm_select
|
63
52
|
# an empty string is the default exchange [see bunny docs](http://rubybunny.info/articles/exchanges.html#default_exchange)
|
64
53
|
exchange = channel.topic("")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_subscriber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.3.
|
4
|
+
version: 5.1.3.pre2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-11-
|
15
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|