Skip to content

Commit

Permalink
add producer flush
Browse files Browse the repository at this point in the history
  • Loading branch information
dspeck1 committed Oct 29, 2024
1 parent bcd27ff commit fa58f9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async def fan_out_msg(
await producer.start()
logging.info(f"sending msg {data}")
await producer.send_and_wait(fan_out_topic, data)
await producer.flush()
await producer.stop()


Expand Down

0 comments on commit fa58f9b

Please sign in to comment.