Skip to content

Commit

Permalink
Fix: Change resumeAfter to startAfter.
Browse files Browse the repository at this point in the history
startAfter seems to be a bug fix for resumeAfter that adds support for
INVALIDATE events. Not sure why anyone wouldn't want that.
  • Loading branch information
prdoyle committed Jun 14, 2023
1 parent 29c6c71 commit 12d6b0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private boolean setupNewSession(ChangeEventListener newListener) {
}
try {
MongoChangeStreamCursor<ChangeStreamDocument<Document>> cursor
= collection.watch().resumeAfter(resumePoint).cursor();
= collection.watch().startAfter(resumePoint).cursor();
currentSession = new Session(cursor, newListener, initialEvent, false);
return true;
} catch (MongoCommandException e) {
Expand Down

0 comments on commit 12d6b0e

Please sign in to comment.