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--;
|
||||
resolve(reply);
|
||||
|
||||
readResponseTime.push(Date.now() - start);
|
||||
if (readResponseTime.length > maxStoredTimes) readResponseTime.shift();
|
||||
writeResponseTime.push(Date.now() - start);
|
||||
if (writeResponseTime.length > maxStoredTimes) writeResponseTime.shift();
|
||||
}).catch((err) => {
|
||||
activeRequests--;
|
||||
writeRequests--;
|
||||
|
||||
Reference in New Issue
Block a user