bbk-amqp 1.0.0.82233 → 1.0.0.82255
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 +5 -0
- 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: d96acd31582f6d08bb3ead76fa6cef86927cc2f6788bcc6f9bb4dd172d4734a6
|
4
|
+
data.tar.gz: 6deb1160d3c82a8007c10853880b59b0f3c785743b431388cefedb0a2865bd6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f6c7740a23bff9fd1ea7d4305eeae509ecece8383851bf79b9e8f1314e67bfe8041b411e51d535195c15311b7b4e9e24cceabbf57c11a6a744f635373abccc1
|
7
|
+
data.tar.gz: 18c8815fb960e9eae38f9b9cc99e099e27adad437476feb5555bcf55e5755a210e77454b34cb692119fecc7f2240af2427217bbbaa71876a651882a7e9641886
|
data/Gemfile.lock
CHANGED
data/lib/bbk/amqp/publisher.rb
CHANGED
@@ -75,6 +75,11 @@ 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 (user_id = message.headers[:user_id]).present?
|
79
|
+
user_id
|
80
|
+
else
|
81
|
+
client_name
|
82
|
+
end
|
78
83
|
send_message(exchange, routing_key, message.payload, properties)
|
79
84
|
end
|
80
85
|
|