Fix/db reuse connection mark pending (#964)

* check if wallet exists

* check wallet existence in key check

* reuse connection for stataus update

* make format
This commit is contained in:
calle
2022-09-12 20:57:23 +03:00
committed by GitHub
parent 1660b9dcf1
commit d0ca0b18da
2 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ async def check_pending_payments():
conn=conn,
)
for payment in pending_payments:
await payment.check_status()
await payment.check_status(conn=conn)
logger.debug(
f"Task: pending check finished for {len(pending_payments)} payments (took {time.time() - start_time:0.3f} s)"