Skip to content

Commit

Permalink
[mongodb][hotfix] Fix pollAwaitTimeMillis does not take effect (#1995)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyaohui97 authored Mar 24, 2023
1 parent 16df76f commit a93db47
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public void execute(Context context) throws Exception {
.map(this::normalizeHeartbeatRecord)
.orElse(null);
}
// update nextUpdateTime
nextUpdate = time.milliseconds() + sourceConfig.getPollAwaitTimeMillis();
} else {
BsonDocument changeStreamDocument = next.get();
MongoNamespace namespace = getMongoNamespace(changeStreamDocument);
Expand Down

0 comments on commit a93db47

Please sign in to comment.