Browse Source
Feature/decrease rate limiter duration (#1217)
* Decrease rate limiter duration
* Update changelog
pull/1218/head^2
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-gathering.module.ts
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Decreased the rate limiter duration of queue jobs from 5 to 4 seconds |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Made the environment variables `REDIS_HOST` and `REDIS_PORT` mandatory |
|
|
|
|
|
@ -17,7 +17,7 @@ import { SymbolProfileModule } from './symbol-profile.module'; |
|
|
|
imports: [ |
|
|
|
BullModule.registerQueue({ |
|
|
|
limiter: { |
|
|
|
duration: ms('5 seconds'), |
|
|
|
duration: ms('4 seconds'), |
|
|
|
max: 1 |
|
|
|
}, |
|
|
|
name: DATA_GATHERING_QUEUE |
|
|
|