MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / reset

Method reset

pymongo/synchronous/monitor.py:472–476  ·  view source on GitHub ↗

Reset the average RTT.

(self)

Source from the content-addressed store, hash-verified

470 return self._moving_average.get(), self._moving_min.get()
471
472 def reset(self) -> None:
473 """Reset the average RTT."""
474 with self._lock:
475 self._moving_average.reset()
476 self._moving_min.reset()
477
478 def _run(self) -> None:
479 try:

Callers 4

_reset_connectionMethod · 0.45
_check_serverMethod · 0.45
closeMethod · 0.45
_runMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected