Skip to content

Commit ce4d765

Browse files
raprekwallyqs
authored andcommitted
-> rm | delete 'nats: connection is closed' msg for fut.cancel to ensure backward compatibility
1 parent 63e3186 commit ce4d765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nats/aio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ async def _close(self, status: int, do_cbs: bool = True) -> None:
689689
# so cancel them here to unblock them.
690690
if sub._pending_next_msgs_calls:
691691
for fut in sub._pending_next_msgs_calls.values():
692-
fut.cancel("nats: connection is closed")
692+
fut.cancel()
693693
sub._pending_next_msgs_calls.clear()
694694
self._subs.clear()
695695

0 commit comments

Comments
 (0)