Skip to content
Snippets Groups Projects

Feat rc_util add function

Closed Bo-Chun Chen requested to merge github/fork/diedpigs/feat-util-add-function into develop
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -54,6 +54,9 @@ class RCRMQ(object):
@@ -54,6 +54,9 @@ class RCRMQ(object):
self._channel.close()
self._channel.close()
self._connection.close()
self._connection.close()
 
def delete_queue(self):
 
self._channel.queue_delete(self.QUEUE)
 
def publish_msg(self, obj):
def publish_msg(self, obj):
if 'routing_key' in obj:
if 'routing_key' in obj:
self.ROUTING_KEY = obj['routing_key']
self.ROUTING_KEY = obj['routing_key']
Loading