Update rcrmq class
Compare changes
+ 32
− 26
@@ -13,9 +13,6 @@ class RCRMQ(object):
@@ -83,55 +80,64 @@ class RCRMQ(object):
The previous design was based on these assumptions: RCRMQ instance only need to do either publish or consume RCRMQ instance only need to interact with one single queue
However, in order to perform an RPC-like call, an instance will need to do both publish and consume. In addition, publish and consume are not necessary to the same queue. So, saving queue name as a single variable inside the instance is not viable anymore.