bbk-amqp 1.0.0.82260 → 1.0.0.82273
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bbk/amqp/publisher.rb +1 -5
- 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: 9bdb4acc4df0ff518a20e9ffea4c4f17728d32116f698d5f688e54932c57a8a1
|
4
|
+
data.tar.gz: bab128573b4283b440c703883d3b3c37a7964411d85ac0462ae2b2f7d0fa5fb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69fdbf711cd3a6624c797fe7517af3fbca9ed4ac9eba0faabe8556dfd74d8db72b92975a9da3299a3b63586f040256e99c97a9dff10782b354f5b2df559d8271
|
7
|
+
data.tar.gz: faa15d700ba3147c593584aa83a8e3e020074da41afd1d8e1d01f228ca8dc0b83c07ba43f1512d1b24948df0c8fd4eea384b584875f40e7fae699ff11a5cc532
|
data/Gemfile.lock
CHANGED
data/lib/bbk/amqp/publisher.rb
CHANGED
@@ -75,11 +75,7 @@ module BBK
|
|
75
75
|
# user_id: client_name,
|
76
76
|
**message.headers.select {|k| HEADER_PROP_FIELDS.include? k }.compact
|
77
77
|
}.merge(options).symbolize_keys
|
78
|
-
properties[:user_id] = if
|
79
|
-
user_id
|
80
|
-
else
|
81
|
-
properties[:headers][:user_id] = client_name
|
82
|
-
end
|
78
|
+
properties[:user_id] = client_name if message.headers[:user_id].blank?
|
83
79
|
send_message(exchange, routing_key, message.payload, properties)
|
84
80
|
end
|
85
81
|
|