diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 07:32:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 07:32:41 +0800 |
commit | 1534505652aa12a385dee46f876c22cc4ce8621a (patch) | |
tree | d6cf228c7a077fa43a440d23034211f305645bdb /packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts | |
parent | a1186f052d7cff755f3076275b1d88735610b77f (diff) | |
download | dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.gz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.bz2 dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.lz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.xz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.zst dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.zip |
Fix linter errors
Diffstat (limited to 'packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts')
-rw-r--r-- | packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts b/packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts index 0ffa5fd47..c4dcf6c83 100644 --- a/packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts +++ b/packages/pipeline/src/scripts/pull_oasis_orderbook_snapshots.ts @@ -27,7 +27,7 @@ let connection: Connection; logUtils.log(`Got ${markets.length} markets.`); for (const marketsChunk of R.splitEvery(MARKET_ORDERBOOK_REQUEST_BATCH_SIZE, markets)) { await Promise.all( - marketsChunk.map(async (market: OasisMarket) => getAndSaveMarketOrderbook(oasisSource, market)), + marketsChunk.map(async (market: OasisMarket) => getAndSaveMarketOrderbookAsync(oasisSource, market)), ); await new Promise<void>(resolve => setTimeout(resolve, MILLISEC_MARKET_ORDERBOOK_REQUEST_DELAY)); } @@ -40,7 +40,7 @@ let connection: Connection; * @param oasisSource Data source which can query Oasis API. * @param marketId String identifying market we want data for. eg. 'REPAUG'. */ -async function getAndSaveMarketOrderbook(oasisSource: OasisSource, market: OasisMarket): Promise<void> { +async function getAndSaveMarketOrderbookAsync(oasisSource: OasisSource, market: OasisMarket): Promise<void> { logUtils.log(`${market.id}: Retrieving orderbook.`); const orderBook = await oasisSource.getMarketOrderbookAsync(market.id); const observedTimestamp = Date.now(); |