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
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -76,7 +76,10 @@ class RCRMQ(object):
@@ -76,7 +76,10 @@ class RCRMQ(object):
self.connect()
self.connect()
self._consumer_tag = self._channel.basic_consume(self.QUEUE,obj['cb'])
self._consumer_tag = self._channel.basic_consume(self.QUEUE,obj['cb'])
self._channel.start_consuming()
try:
 
self._channel.start_consuming()
 
except KeyboardInterrupt:
 
self._channel.stop_consuming()
self.disconnect()
self.disconnect()
Loading