mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
More specific redis error
This commit is contained in:
@@ -61,7 +61,7 @@ if (config.redis?.enabled) {
|
|||||||
const getRead = readClient?.get?.bind(readClient);
|
const getRead = readClient?.get?.bind(readClient);
|
||||||
exportClient.get = (key) => new Promise((resolve, reject) => {
|
exportClient.get = (key) => new Promise((resolve, reject) => {
|
||||||
if (config.redis.maxConnections && activeRequests > config.redis.maxConnections) {
|
if (config.redis.maxConnections && activeRequests > config.redis.maxConnections) {
|
||||||
reject("Too many active requests");
|
reject("Too many active requests in general");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user