combi 0.0.15 → 0.0.16
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/combi/buses/queue.rb +1 -1
- data/lib/combi/queue_service.rb +4 -0
- data/lib/combi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dfbacc13cc058b63321ceda749d6ceea8c6a5c1
|
|
4
|
+
data.tar.gz: ea5082f27fa522b103e2fc8e92032e0a6fd91e90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53b03c8e8b8ed4a86ab0957702f0524f1047c738ae53ea6e83c1065144e6ad94c9cb5c6b0dc42b2fea0c04d91b478a9f9c9f7727cfb2eeb8e5d578f8fdf11e5c
|
|
7
|
+
data.tar.gz: 0b8fc533afb38fcfd4962a548218b8b7242c901511004ec47424c66396379aa6bfc38be04377907650ed779ca7d3dbc6ef6fae4227c6e9daa52e96c49bc2839a
|
data/lib/combi/buses/queue.rb
CHANGED
|
@@ -52,7 +52,7 @@ module Combi
|
|
|
52
52
|
correlation_id = Combi::Correlation.generate
|
|
53
53
|
options[:correlation_id] = correlation_id
|
|
54
54
|
waiter = EventedWaiter.wait_for(correlation_id, @response_store, options[:timeout])
|
|
55
|
-
queue_service.
|
|
55
|
+
queue_service.next_ready_only do
|
|
56
56
|
log "Making request: #{name}.#{kind} #{message.inspect[0..500]}\t|| #{options.inspect[0..500]}"
|
|
57
57
|
queue_service.call(kind, message, options)
|
|
58
58
|
end
|
data/lib/combi/queue_service.rb
CHANGED
|
@@ -19,6 +19,10 @@ module Combi
|
|
|
19
19
|
@ready_defer.callback &block
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
def next_ready_only(&block)
|
|
23
|
+
@ready_defer.callback &block
|
|
24
|
+
end
|
|
25
|
+
|
|
22
26
|
def log(message)
|
|
23
27
|
return unless @debug_mode ||= ENV['DEBUG'] == 'true'
|
|
24
28
|
puts "#{Time.now.to_f} #{self.class.name} #{message}"
|
data/lib/combi/version.rb
CHANGED