ruby_rabbitmq_janus 3.0.0.pre.364 → 3.0.0.pre.366
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rrj/rabbit/listener/base.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b84d69f38b85260b7a3dfaab6e20582ebe1677de611a1fdaa9dad0524d69a6
|
4
|
+
data.tar.gz: f8792bdb6808853b7861f5b45b28503471a80ea85fc1b48c125c7dbf6233dee0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb76a82bcdb166ed7cece2ac83f8d3c35c662ea3ae1470e871af24170c0c49b0e63d15a6e847c8b2ad53c780dd9d88246a0b8cf455e94c8ad7f5ad5719eeff92
|
7
|
+
data.tar.gz: 7e1d00d5a99043e9e5dc8efcc82ce61fa4d5320cdcc4191d332c79c81818e974d9defb789c702a2d2ca752b0d429e5910a699775c4fb4e92b09e2a47247a528a
|
@@ -36,7 +36,7 @@ module RubyRabbitmqJanus
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def opts_subs
|
39
|
-
{ block: false, manual_ack:
|
39
|
+
{ block: false, manual_ack: false, arguments: { 'x-priority': 2 } }
|
40
40
|
end
|
41
41
|
|
42
42
|
def info_subscribe(info, _prop, payload)
|
@@ -56,14 +56,13 @@ module RubyRabbitmqJanus
|
|
56
56
|
rabbit.prefetch(1)
|
57
57
|
reply.bind(binding).subscribe(opts_subs) do |info, prop, payload|
|
58
58
|
info_subscribe(info, prop, payload)
|
59
|
-
synchronize_response(
|
59
|
+
synchronize_response(payload)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
def synchronize_response(
|
63
|
+
def synchronize_response(payload)
|
64
64
|
lock.synchronize do
|
65
65
|
response = response_class(payload)
|
66
|
-
rabbit.acknowledge(info.delivery_tag, false)
|
67
66
|
responses.push(response)
|
68
67
|
end
|
69
68
|
semaphore.signal
|