More specific redis error

This commit is contained in:
Ajay 2023-04-07 14:39:38 -04:00
parent 9600f56830
commit 69a54f64b4

View file

@ -61,7 +61,7 @@ if (config.redis?.enabled) {
const getRead = readClient?.get?.bind(readClient);
exportClient.get = (key) => new Promise((resolve, reject) => {
if (config.redis.maxConnections && activeRequests > config.redis.maxConnections) {
reject("Too many active requests");
reject("Too many active requests in general");
return;
}