istox 0.1.123 → 0.1.124

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: a9c603a12c2e306b53d71d8a403f2f74566674f0931b86a56108cac7bb147551
4
- data.tar.gz: '08d22453d53b932195185a3f72c9bf130647b61c6e55693d019ed4fd32e151e5'
3
+ metadata.gz: 1f57643b7db58520df95ebf6bcee60d01f950b747b3f2282e2043990eb29849e
4
+ data.tar.gz: 50e15820d71aad11e465c5920c55ccaa44f4c720de0a717ec90fa5671e934f01
5
5
  SHA512:
6
- metadata.gz: 70b8deac47ea641daddcf1753efb5755610d4ac801bac1071e9cfecaf2651029ae3526b80aede2c181845eecb946c072bc1013ad711a12896ca2674d88412755
7
- data.tar.gz: e5b079847c9739f1568e492811b946150f56a39c51b909dc176ab512f102c6077a9bb68dddbece0876fe039a9b1761b04f8018a774cea1aa9cdf8ed037927301
6
+ metadata.gz: 0d803d23c87c7364814507c77408a8ddca2be309d48069c1f2fa4db262098aa0dae41c2460a9f447694f677ac6da357dc286e27cb40733abfe3c899063e7d62a
7
+ data.tar.gz: ff879dbb669c200b28a78a8de15b2e013134abd9f5720806863715094a0714264163d3a12225ebf2e66656e98d2c08934aa787c1eaf5ed0d1e9e4f25f5a84864
@@ -75,10 +75,8 @@ module Istox
75
75
  # Start new thread on receiving ACK from 'confirm-1' channel on the specified thread
76
76
  Thread.new do
77
77
  loop do
78
- log.debug "[Async #{threadId}] Confirm mode channel, wait for confirmation"
79
78
  success = @channel[threadId]['confirm-1'].wait_for_confirms
80
79
  if success
81
- log.debug "[Async] Confirm mode result: #{success}"
82
80
  ::Istox::RedisBoot.flushdb
83
81
  else
84
82
  @channel[threadId]['confirm-1'].nacked_set.each do |n|
@@ -185,7 +183,11 @@ module Istox
185
183
  end
186
184
 
187
185
  create_tracker message_id, delivery_tag, 0, message if ex.channel.using_publisher_confirmations?
188
- ::Istox::BunnyBoot.publish(ex, message, routing_key: routing_key, message_id: message_id, type: 'manual')
186
+ options = {}
187
+ options[:routing_key] = routing_key unless routing_key.nil?
188
+ options[:message_id] = message_id unless message_id.nil?
189
+ options[:type] = 'manual'
190
+ ::Istox::BunnyBoot.publish(ex, message, options)
189
191
 
190
192
  if ex.channel.using_publisher_confirmations? && confirm_mode(ex.name) == 0
191
193
  success = ex.channel.wait_for_confirms
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.123'.freeze
2
+ VERSION = '0.1.124'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.123
4
+ version: 0.1.124
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-27 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print