Skip to content

Commit f01bccd

Browse files
authored
Merge pull request #5569 from Countly/ar2rsawseen/master
Revert "[cache] Removing noCursorTimeout from cache cursor"
2 parents c6f1fd8 + 654945a commit f01bccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/parts/data/cache.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ class StreamedCollection {
971971
let [col, last] = await createCollection(this.db, this.name, 1e7);
972972

973973
this.col = col;
974-
this.stream = col.find({_id: {$gt: last}}, {tailable: true, awaitData: true, numberOfRetries: -1}).stream();
974+
this.stream = col.find({_id: {$gt: last}}, {tailable: true, awaitData: true, noCursorTimeout: true, numberOfRetries: -1}).stream();
975975

976976
this.stream.on('data', doc => {
977977
if (this.inserts.indexOf(doc._id.toString()) !== -1) {

0 commit comments

Comments
 (0)