Skip to content

Commit

Permalink
rm unnecessary conn close eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Bigun committed Oct 29, 2024
1 parent 26a42d3 commit e46b5bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions examples/graceful_shutdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ async def cb(msg):
await shutdown_event.wait()

await nc.drain()
await nc.close()
print("gracefully closed nats consumer")


Expand All @@ -55,7 +54,6 @@ async def nats_producer(shutdown_event: asyncio.Event):
await asyncio.sleep(1)

await nc.drain()
await nc.close()
print("gracefully closed nats producer")


Expand Down

0 comments on commit e46b5bb

Please sign in to comment.