mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-17 21:31:55 +01:00
fix: only re-check pending payments
This commit is contained in:
parent
a300c24dc2
commit
59347448a0
@ -203,7 +203,8 @@ async def update_pending_payments(
|
|||||||
payments: list[Payment], delay: Optional[float] = None
|
payments: list[Payment], delay: Optional[float] = None
|
||||||
) -> list[Payment]:
|
) -> list[Payment]:
|
||||||
for payment in payments:
|
for payment in payments:
|
||||||
await update_pending_payment(payment)
|
if payment.pending:
|
||||||
|
await update_pending_payment(payment)
|
||||||
if delay is not None:
|
if delay is not None:
|
||||||
await asyncio.sleep(delay) # to avoid complete blocking
|
await asyncio.sleep(delay) # to avoid complete blocking
|
||||||
return payments
|
return payments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user