diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 07:54:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 07:54:00 +0800 |
commit | f9d436cd213a6d9800aa528c9bac5415230378f4 (patch) | |
tree | d6cf228c7a077fa43a440d23034211f305645bdb /packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts | |
parent | 78a6d236599857e2c9478b3c23a751101a6e233b (diff) | |
parent | 1534505652aa12a385dee46f876c22cc4ce8621a (diff) | |
download | dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar.gz dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar.bz2 dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar.lz dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar.xz dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.tar.zst dexon-sol-tools-f9d436cd213a6d9800aa528c9bac5415230378f4.zip |
Merge pull request #1425 from 0xProject/feature/async-suffix
Check for an Async suffix in functions, not just methods.
Diffstat (limited to 'packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts')
-rw-r--r-- | packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts b/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts index bae1fbede..34345f355 100644 --- a/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts +++ b/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts @@ -29,7 +29,7 @@ let connection: Connection; const tokenInfoResponse = await paradexSource.getTokenInfoAsync(); const extendedMarkets = addTokenAddresses(markets, tokenInfoResponse); await Promise.all( - extendedMarkets.map(async (market: ParadexMarket) => getAndSaveMarketOrderbook(paradexSource, market)), + extendedMarkets.map(async (market: ParadexMarket) => getAndSaveMarketOrderbookAsync(paradexSource, market)), ); process.exit(0); })().catch(handleError); @@ -70,7 +70,7 @@ function addTokenAddresses( * @param paradexSource Data source which can query the Paradex API. * @param market Object from the Paradex API with information about the market in question. */ -async function getAndSaveMarketOrderbook(paradexSource: ParadexSource, market: ParadexMarket): Promise<void> { +async function getAndSaveMarketOrderbookAsync(paradexSource: ParadexSource, market: ParadexMarket): Promise<void> { const paradexOrderbookResponse = await paradexSource.getMarketOrderbookAsync(market.symbol); const observedTimestamp = Date.now(); |