File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ async def sync(
261
261
262
262
# Sync product/price accounts
263
263
264
- transactions : list [ Coroutine [ Any , Any , None ]] = []
264
+ transactions : List [ asyncio . Task [ None ]] = []
265
265
266
266
product_updates : bool = False
267
267
@@ -282,7 +282,9 @@ async def sync(
282
282
instructions .extend (product_instructions )
283
283
if send_transactions :
284
284
transactions .append (
285
- self .send_transaction (product_instructions , product_keypairs )
285
+ asyncio .create_task (
286
+ self .send_transaction (product_instructions , product_keypairs )
287
+ )
286
288
)
287
289
288
290
await asyncio .gather (* transactions )
@@ -308,7 +310,9 @@ async def sync(
308
310
instructions .extend (price_instructions )
309
311
if send_transactions :
310
312
transactions .append (
311
- self .send_transaction (price_instructions , price_keypairs )
313
+ asyncio .create_task (
314
+ self .send_transaction (price_instructions , price_keypairs )
315
+ )
312
316
)
313
317
314
318
await asyncio .gather (* transactions )
You can’t perform that action at this time.
0 commit comments