mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Merge branch 'tweak-timeouts' into 'main'
Increase default database timeouts See merge request soapbox-pub/ditto!420
This commit is contained in:
commit
4fa5517c58
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ class Conf {
|
||||||
timeouts: {
|
timeouts: {
|
||||||
/** Default query timeout when another setting isn't more specific. */
|
/** Default query timeout when another setting isn't more specific. */
|
||||||
get default(): number {
|
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. */
|
/** Timeout used for queries made through the Nostr relay. */
|
||||||
get relay(): number {
|
get relay(): number {
|
||||||
|
|
@ -110,7 +110,7 @@ class Conf {
|
||||||
},
|
},
|
||||||
/** Timeout used for timelines such as home, notifications, hashtag, etc. */
|
/** Timeout used for timelines such as home, notifications, hashtag, etc. */
|
||||||
get timelines(): number {
|
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