Archnemix commited on
Commit
714e12d
·
verified ·
1 Parent(s): b12287d

Update src/bot.js

Browse files
Files changed (1) hide show
  1. src/bot.js +2 -2
src/bot.js CHANGED
@@ -6,10 +6,10 @@ import { fileURLToPath, pathToFileURL } from 'node:url'
6
 
7
  const __dirname = dirname(fileURLToPath(import.meta.url))
8
 
9
- const RACE_CONCURRENCY = 5 // parallel attempts per round
10
  const MAX_RETRIES = -1 // rounds before giving up (-1 = infinite)
11
  const RETRY_DELAY_MS = 5_000 // wait between rounds (ms)
12
- const CONNECT_TIMEOUT = 60_000 // undici connect timeout per attempt (ms)
13
 
14
  // Passing a custom undici Agent via the `rest` option is the only way to
15
  // override discord.js's hardcoded 10 s connect timeout — env vars and
 
6
 
7
  const __dirname = dirname(fileURLToPath(import.meta.url))
8
 
9
+ const RACE_CONCURRENCY = 10 // parallel attempts per round
10
  const MAX_RETRIES = -1 // rounds before giving up (-1 = infinite)
11
  const RETRY_DELAY_MS = 5_000 // wait between rounds (ms)
12
+ const CONNECT_TIMEOUT = 50_000 // undici connect timeout per attempt (ms)
13
 
14
  // Passing a custom undici Agent via the `rest` option is the only way to
15
  // override discord.js's hardcoded 10 s connect timeout — env vars and