mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-11 04:52:34 +02:00
fix: await retry (#2739)
This commit is contained in:
@@ -85,7 +85,7 @@ async def catch_everything_and_restart(
|
|||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
logger.error("will restart the task in 5 seconds.")
|
logger.error("will restart the task in 5 seconds.")
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
return catch_everything_and_restart(func, name)
|
return await catch_everything_and_restart(func, name)
|
||||||
|
|
||||||
|
|
||||||
invoice_listeners: Dict[str, asyncio.Queue] = {}
|
invoice_listeners: Dict[str, asyncio.Queue] = {}
|
||||||
|
Reference in New Issue
Block a user