Skip to content

Commit 49466f9

Browse files
PYTHON-4449 Ensure resume options aren't combined during automatic retry (#1641)
1 parent e45ca51 commit 49466f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pymongo/change_stream.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ def _change_stream_options(self) -> dict[str, Any]:
179179
options["startAfter"] = resume_token
180180
else:
181181
options["resumeAfter"] = resume_token
182-
183-
if self._start_at_operation_time is not None:
182+
elif self._start_at_operation_time is not None:
184183
options["startAtOperationTime"] = self._start_at_operation_time
185184

186185
if self._show_expanded_events:

0 commit comments

Comments
 (0)