Skip to content
Closed
2 changes: 1 addition & 1 deletion pymongo/asynchronous/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ async def _check_server(self) -> ServerDescription:
except (OperationFailure, NotPrimaryError) as exc:
# Update max cluster time even when hello fails.
details = cast(Mapping[str, Any], exc.details)
self._topology.receive_cluster_time(details.get("$clusterTime"))
await self._topology.receive_cluster_time(details.get("$clusterTime"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

raise
except ReferenceError:
raise
Expand Down
Loading
Loading