mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 06:27:10 +03:00
Add seperate config for stopping write redis connections
This commit is contained in:
@@ -68,7 +68,7 @@ if (config.redis?.enabled) {
|
||||
});
|
||||
});
|
||||
exportClient.set = (key, value) => new Promise((resolve, reject) => {
|
||||
if (activeRequests > config.redis.maxConnections) {
|
||||
if (activeRequests > config.redis.maxWriteConnections) {
|
||||
reject("Too many active requests");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user