Skip to content

Commit

Permalink
Remove test message and close producer in the fan_out_msg function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dspeck1 committed Oct 1, 2024
1 parent d2e513a commit eca3cfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ async def fan_out_msg(
):
await producer.start()
logging.info(f"sending msg {data}")
#await producer.send_and_wait(fan_out_topic, b(json.dumps(data)))
await producer.send_and_wait(fan_out_topic, b"test")
await producer.send_and_wait(fan_out_topic, b(json.dumps(data)))
await producer.stop()


async def main() -> None:
Expand Down Expand Up @@ -393,7 +393,6 @@ async def main() -> None:

finally:
await consumer.stop()
await producer.stop()


asyncio.run(main())

0 comments on commit eca3cfc

Please sign in to comment.