Skip to content

Commit

Permalink
Merge pull request #227 from DestinyItemManager/timeout
Browse files Browse the repository at this point in the history
Add a timeout to platform info calls
  • Loading branch information
bhollis authored Sep 6, 2024
2 parents 75649c6 + 354e893 commit 303e5d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/routes/platform-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const platformInfoHandler = asyncHandler(async (req, res) => {
// Try StatelyDB first, then fall back to Postgres
const statelySettings = await client
.withAllowStale(true)
.withTimeoutMs(500)
.get('GlobalSettings', keyPath`/gs-${flavor}`);
if (statelySettings) {
settings = {
Expand Down

0 comments on commit 303e5d4

Please sign in to comment.