From c170ca218369a70846a8444e320e2eff5baf67b5 Mon Sep 17 00:00:00 2001 From: williamlardier Date: Wed, 4 Oct 2023 17:47:46 +0200 Subject: [PATCH] wip --- lib/storage/metadata/mongoclient/readStream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/metadata/mongoclient/readStream.js b/lib/storage/metadata/mongoclient/readStream.js index d7e47f748..3531a0341 100644 --- a/lib/storage/metadata/mongoclient/readStream.js +++ b/lib/storage/metadata/mongoclient/readStream.js @@ -15,7 +15,7 @@ class MongoReadStream extends Readable { objectMode: true, highWaterMark: 0, }); - this.numberOfReadStreamOpen++; + MongoReadStream.numberOfReadStreamOpen++; if (options.limit === 0) { return; @@ -151,7 +151,7 @@ class MongoReadStream extends Readable { return; } this._destroyed = true; - this.numberOfReadStreamClosed++; + MongoReadStream.numberOfReadStreamClosed++; this._cursor.close().catch(err => { if (err) {