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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1778e1cad4b4e0db49bcbb8d70a80cddea8f5f7212c56a69dad4a5ed552574df
4
- data.tar.gz: 9b619a1812faccebb55f100a76b283db320a3149b92f3528579df4ebfa62b961
3
+ metadata.gz: a8825a5aee9ef249779a75bbddaf90debf489a6afe2aea23af9638a5582e34cf
4
+ data.tar.gz: f488f680b5711d9cc2fee713dffc971d719b743fa4329031f73a57ea3547e46a
5
5
  SHA512:
6
- metadata.gz: 5a09194005e557a69cde02f7dee66cdad9099df08c9802697eb86c490dbb8034b4c743d7fff919209d6563ea908e509247d2fab7640f36dd7bf1415108ffe721
7
- data.tar.gz: 2b77c3a0724d4bbcbce61b49d7ee111511a96a056041c43c37c71bd4ce1d3b886b1542aedbdc44e97a06d12e6033e5bac7a94d416124d54a6afea802ce088883
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
- unless env.channel.open?
50
- begin
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("")
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "5.1.3.pre1"
2
+ VERSION = "5.1.3.pre2"
3
3
  end
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.pre1
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-06 00:00:00.000000000 Z
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