From bc6492e352f573f77b0daec8f2ae58fa57dc2852 Mon Sep 17 00:00:00 2001 From: xianny Date: Fri, 7 Dec 2018 09:53:49 -0800 Subject: refresh rate limit every second instead of every minute --- packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts b/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts index 0cfec4ef5..29cef65b0 100644 --- a/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts +++ b/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts @@ -52,9 +52,9 @@ export class CryptoCompareOHLCVSource { constructor(maxReqsPerSecond: number) { this._limiter = new Bottleneck({ minTime: ONE_SECOND / maxReqsPerSecond, - reservoir: 2000, - reservoirRefreshAmount: 2000, - reservoirRefreshInterval: ONE_MINUTE, + reservoir: 30, + reservoirRefreshAmount: 30, + reservoirRefreshInterval: ONE_SECOND, }); } -- cgit