Skip to content

Commit bdb810c

Browse files
committed
PYTHON-4579 Remove TODO and CancelledError
1 parent 8e11997 commit bdb810c

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

pymongo/asynchronous/monitor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ async def _check_server(self) -> ServerDescription:
256256
start = time.monotonic()
257257
try:
258258
return await self._check_once()
259-
except asyncio.CancelledError:
260-
raise
261259
except ReferenceError:
262260
raise
263261
except Exception as error:

pymongo/asynchronous/topology.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,6 @@ async def _process_change(
503503

504504
self._description = new_td
505505
await self._update_servers()
506-
# TODO: Verify that app errors update the $clusterTime.
507-
# self._receive_cluster_time_no_lock(server_description.cluster_time)
508506

509507
if self._publish_tp and not suppress_event:
510508
assert self._events is not None

pymongo/synchronous/monitor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ def _check_server(self) -> ServerDescription:
254254
start = time.monotonic()
255255
try:
256256
return self._check_once()
257-
except asyncio.CancelledError:
258-
raise
259257
except ReferenceError:
260258
raise
261259
except Exception as error:

pymongo/synchronous/topology.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,6 @@ def _process_change(
503503

504504
self._description = new_td
505505
self._update_servers()
506-
# TODO: Verify that app errors update the $clusterTime.
507-
# self._receive_cluster_time_no_lock(server_description.cluster_time)
508506

509507
if self._publish_tp and not suppress_event:
510508
assert self._events is not None

0 commit comments

Comments
 (0)