mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix write process time not being used
This commit is contained in:
parent
2700b5b530
commit
0ead3892ba
1 changed files with 2 additions and 2 deletions
|
@ -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--;
|
||||
|
|
Loading…
Reference in a new issue