fix: only re-check pending payments

This commit is contained in:
Vlad Stan 2025-02-28 12:48:34 +02:00
parent a300c24dc2
commit 59347448a0

View File

@ -203,6 +203,7 @@ async def update_pending_payments(
payments: list[Payment], delay: Optional[float] = None
) -> list[Payment]:
for payment in payments:
if payment.pending:
await update_pending_payment(payment)
if delay is not None:
await asyncio.sleep(delay) # to avoid complete blocking