diff --git a/src/dexorder/bin/mirror.py b/src/dexorder/bin/mirror.py index be3e7ab..d5cc438 100644 --- a/src/dexorder/bin/mirror.py +++ b/src/dexorder/bin/mirror.py @@ -153,7 +153,7 @@ async def main(): if isinstance(x, Exception): log.error(f'Failed to mirror token {token}: {x}') exit(1) - txs = [await mirrorenv.transact.mirrorToken(info, gas=LOTSA_GAS) for info in token_infos] + txs = await asyncio.gather(*[mirrorenv.transact.mirrorToken(info, gas=LOTSA_GAS) for info in token_infos], return_exceptions=True) for token, x in zip(tokens, txs): if isinstance(x, Exception): log.error(f'Failed to mirror token {token}: {x}')