istox 0.1.123 → 0.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/istox/helpers/publisher.rb +5 -3
- data/lib/istox/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: 1f57643b7db58520df95ebf6bcee60d01f950b747b3f2282e2043990eb29849e
|
|
4
|
+
data.tar.gz: 50e15820d71aad11e465c5920c55ccaa44f4c720de0a717ec90fa5671e934f01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
data/lib/istox/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2020-02-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: awesome_print
|