mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-20 02:31:02 +02:00
Acknowledge messaages from Pulsar, doh!
This commit is contained in:
parent
340d7a224f
commit
c83bbe173e
1 changed files with 3 additions and 0 deletions
|
|
@ -156,6 +156,9 @@ class Subscriber:
|
||||||
while True:
|
while True:
|
||||||
msg = await consumer.receive()
|
msg = await consumer.receive()
|
||||||
|
|
||||||
|
# Acknowledge successful reception of the message
|
||||||
|
await consumer.acknowledge(msg)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
id = msg.properties()["id"]
|
id = msg.properties()["id"]
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue