From 5a0d7ee4ed02b00377247f373e7eeffced466717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Thu, 14 Aug 2025 09:35:58 +0200 Subject: [PATCH] fix: linting issues introduced last commit (#92) --- tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks.py b/tasks.py index 956a051..de4820e 100644 --- a/tasks.py +++ b/tasks.py @@ -1,6 +1,5 @@ import asyncio import json -from typing import List import httpx import websockets @@ -157,11 +156,12 @@ async def send_zap(payment: Payment): relays = relays[:50] # Create a list of tasks to run concurrently - tasks = [send_to_relay(relay, zap_receipt.to_message()) for relay in relays] # Run all tasks concurrently. This is a "fire-and-forget" approach. # We don't need to wait for all of them to complete here. - for task in tasks: - asyncio.create_task(task) + _ = [ + asyncio.create_task(send_to_relay(relay, zap_receipt.to_message())) + for relay in relays + ] return zap_receipt