Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions msgflo.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -45,10 +45,10 @@ def process(self, inport, inmsg):
raise NotImplementedError('IParticipant.process()')

def ack(self, msg):
self._runtime._channel.ack(msg.delivery_tag)
self._runtime._channel.basic.ack(msg.delivery_info["delivery_tag"])

def nack(self, msg):
self._runtime._channel.nack(msg.delivery_tag)
self._runtime._channel.basic.nack(msg.delivery_info["delivery_tag"])

def sendParticipantDefinition(channel, d):
msg = haigha_Message(json.dumps(d))
Expand All@@ -69,7 +69,7 @@ def handleInput(msg):

if 'in' in direction:
channel.queue.declare(queue)
channel.basic.consume(queue=queue, consumer=handleInput)
channel.basic.consume(queue=queue, consumer=handleInput, no_ack=False)
print 'subscribed to', queue
sys.stdout.flush()
else:
Expand DownExpand Up@@ -107,7 +107,7 @@ def __init__(self, participant, done_cb):

def _send(self, outport, data):
ports = self.participant.definition['outports']
print "Publising message: %s, %s, %s" % (data,outport,ports)
print "Publishing message: %s, %s, %s" % (data,outport,ports)
sys.stdout.flush()
serialized = json.dumps(data)
msg = haigha_Message(serialized)
Expand Down