From f736b13332060f7a436c2a5f9d084c5ab29cd7e7 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 3 Apr 2024 20:36:27 -0400 Subject: [PATCH] mirror.py bugfix --- src/dexorder/bin/mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}')