Skip to content

Commit

Permalink
Fix csot reset
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Nov 1, 2024
1 parent 606eaa6 commit b98b99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymongo/_csot.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def reset() -> Generator:
if timeout is None:
deadline_token = DEADLINE.set(DEADLINE.get())
else:
deadline_token = DEADLINE.set(DEADLINE.get() + timeout) # type: ignore[operator]
deadline_token = DEADLINE.set(DEADLINE.get() + timeout)
yield
DEADLINE.reset(deadline_token)

Expand Down

0 comments on commit b98b99a

Please sign in to comment.