mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Increase default database timeouts
This commit is contained in:
parent
aac6505bf5
commit
a49e56f2a0
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ class Conf {
|
|||
timeouts: {
|
||||
/** Default query timeout when another setting isn't more specific. */
|
||||
get default(): number {
|
||||
return Number(Deno.env.get('DB_TIMEOUT_DEFAULT') || 3_000);
|
||||
return Number(Deno.env.get('DB_TIMEOUT_DEFAULT') || 5_000);
|
||||
},
|
||||
/** Timeout used for queries made through the Nostr relay. */
|
||||
get relay(): number {
|
||||
|
|
@ -110,7 +110,7 @@ class Conf {
|
|||
},
|
||||
/** Timeout used for timelines such as home, notifications, hashtag, etc. */
|
||||
get timelines(): number {
|
||||
return Number(Deno.env.get('DB_TIMEOUT_TIMELINES') || 10_000);
|
||||
return Number(Deno.env.get('DB_TIMEOUT_TIMELINES') || 15_000);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue