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:
+1
-1
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user