Fix write process time not being used

This commit is contained in:
Ajay 2022-11-08 00:01:44 -05:00
parent 2700b5b530
commit 0ead3892ba

View file

@ -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--;