mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
Fix write process time not being used
This commit is contained in:
@@ -98,8 +98,8 @@ if (config.redis?.enabled) {
|
|||||||
writeRequests--;
|
writeRequests--;
|
||||||
resolve(reply);
|
resolve(reply);
|
||||||
|
|
||||||
readResponseTime.push(Date.now() - start);
|
writeResponseTime.push(Date.now() - start);
|
||||||
if (readResponseTime.length > maxStoredTimes) readResponseTime.shift();
|
if (writeResponseTime.length > maxStoredTimes) writeResponseTime.shift();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
activeRequests--;
|
activeRequests--;
|
||||||
writeRequests--;
|
writeRequests--;
|
||||||
|
|||||||
Reference in New Issue
Block a user