Skip to content

Commit f1544aa

Browse files
committed
undo topology changes
1 parent 7584d2d commit f1544aa

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

pymongo/asynchronous/topology.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,12 @@ async def _handle_error(self, address: _Address, err_ctx: _ErrorContext) -> None
896896
# ... MUST NOT request an immediate check of the server."
897897
if not self._settings.load_balanced:
898898
await self._process_change(ServerDescription(address, error=error))
899-
900899
# Clear the pool.
901900
await server.reset(service_id)
902901
# "When a client marks a server Unknown from `Network error when
903902
# reading or writing`_, clients MUST cancel the hello check on
904903
# that server and close the current monitoring connection."
905904
server._monitor.cancel_check()
906-
return
907905

908906
async def handle_error(self, address: _Address, err_ctx: _ErrorContext) -> None:
909907
"""Handle an application error.

pymongo/synchronous/topology.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,14 +894,12 @@ def _handle_error(self, address: _Address, err_ctx: _ErrorContext) -> None:
894894
# ... MUST NOT request an immediate check of the server."
895895
if not self._settings.load_balanced:
896896
self._process_change(ServerDescription(address, error=error))
897-
898897
# Clear the pool.
899898
server.reset(service_id)
900899
# "When a client marks a server Unknown from `Network error when
901900
# reading or writing`_, clients MUST cancel the hello check on
902901
# that server and close the current monitoring connection."
903902
server._monitor.cancel_check()
904-
return
905903

906904
def handle_error(self, address: _Address, err_ctx: _ErrorContext) -> None:
907905
"""Handle an application error.

0 commit comments

Comments
 (0)