We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e398ff9 commit c69b061Copy full SHA for c69b061
src/aleph/web/controllers/messages.py
@@ -264,10 +264,12 @@ async def messages_ws(request: web.Request) -> web.WebSocketResponse:
264
try:
265
async with mq_queue.iterator() as queue_iter:
266
async for mq_message in queue_iter:
267
+ # Always acknowledge the message
268
+ await mq_message.ack()
269
+
270
if ws.closed:
271
break
272
- await mq_message.ack()
273
item_hash = aleph_json.loads(mq_message.body)["item_hash"]
274
# A bastardized way to apply the filters on the message as well.
275
# TODO: put the filter key/values in the RabbitMQ message?
0 commit comments