diff --git a/package-lock.json b/package-lock.json index 6bd6006..75877af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.5", "license": "ISC", "dependencies": { - "@sergiiivzhenko/bottleneck": "^2.19.7", + "@sergiiivzhenko/bottleneck": "2.19.7", "node-cache": "^5.1.2", "node-fetch": "^2.6.2", "redis": "^3.1.2" diff --git a/src/index.ts b/src/index.ts index 2e54679..c974812 100644 --- a/src/index.ts +++ b/src/index.ts @@ -73,7 +73,7 @@ class Fast42 { * This is useful if you want to run multiple instances of your application, and want to share the rate limit counters between them. * */ - constructor(secrets: ApiSecret[], concurrentOffset: number = 0, jobExpiration: number = 20000, redisConfig?: RedisConfig) { + constructor(secrets: ApiSecret[], concurrentOffset: number = 0, jobExpiration: number = 60000, redisConfig?: RedisConfig) { if (secrets.length === 0) { throw new Error("Fast42 requires at least one 42 Api Key/Secret pair") }