Skip to content

Commit b350d43

Browse files
committed
Add disconnects to persistent connection example in docs.
1 parent 28ce4c0 commit b350d43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/internals.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@ when it comes in.
560560
... public_w3.subscription_manager.handle_subscriptions(),
561561
... local_w3.subscription_manager.handle_subscriptions(),
562562
... )
563+
...
564+
... # close the connections
565+
... await local_w3.provider.disconnect()
566+
... await public_w3.provider.disconnect()
563567
564568
>>> asyncio.run(sub_manager())
565569

0 commit comments

Comments
 (0)