mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Lower redis timeout
This commit is contained in:
parent
55ff3230ed
commit
043c8b771e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ if (config.redis?.enabled) {
|
|||
client.connect();
|
||||
exportClient = client;
|
||||
|
||||
const timeoutDuration = 200;
|
||||
const timeoutDuration = 40;
|
||||
const get = client.get.bind(client);
|
||||
exportClient.get = (key) => new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => reject(), timeoutDuration);
|
||||
|
|
Loading…
Reference in a new issue