Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed Oct 4, 2023
1 parent 0af8869 commit c170ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/storage/metadata/mongoclient/readStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MongoReadStream extends Readable {
objectMode: true,
highWaterMark: 0,
});
this.numberOfReadStreamOpen++;
MongoReadStream.numberOfReadStreamOpen++;

if (options.limit === 0) {
return;
Expand Down Expand Up @@ -151,7 +151,7 @@ class MongoReadStream extends Readable {
return;
}
this._destroyed = true;
this.numberOfReadStreamClosed++;
MongoReadStream.numberOfReadStreamClosed++;

this._cursor.close().catch(err => {
if (err) {
Expand Down

0 comments on commit c170ca2

Please sign in to comment.