mirror of
https://github.com/dennisreimann/stacking-sats-kraken.git
synced 2026-08-13 12:33:45 +02:00
Increase request timeout
https://support.kraken.com/hc/en-us/articles/360000914386-How-can-I-avoid-excessive-timeouts-
This commit is contained in:
parent
add9855f8b
commit
177874217d
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -17,7 +17,7 @@ const validate = process.argv.includes('--validate') || process.env['KRAKEN_DRY_
|
|||
;(async () => {
|
||||
try {
|
||||
const [apiKey, secret] = getEnv('KRAKEN_API_KEY', 'KRAKEN_API_SECRET')
|
||||
const kraken = new Kraken(apiKey, secret)
|
||||
const kraken = new Kraken(apiKey, secret, { timeout: 30000 })
|
||||
|
||||
const cmd = require(`./commands/${command}`)
|
||||
await cmd(kraken, validate, { getEnv, getEnvOpt })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue