mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 05:57:04 +03:00
Lower redis timeout
This commit is contained in:
@@ -31,7 +31,7 @@ if (config.redis?.enabled) {
|
|||||||
client.connect();
|
client.connect();
|
||||||
exportClient = client;
|
exportClient = client;
|
||||||
|
|
||||||
const timeoutDuration = 200;
|
const timeoutDuration = 40;
|
||||||
const get = client.get.bind(client);
|
const get = client.get.bind(client);
|
||||||
exportClient.get = (key) => new Promise((resolve, reject) => {
|
exportClient.get = (key) => new Promise((resolve, reject) => {
|
||||||
const timeout = setTimeout(() => reject(), timeoutDuration);
|
const timeout = setTimeout(() => reject(), timeoutDuration);
|
||||||
|
|||||||
Reference in New Issue
Block a user