mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-21 14:04:25 +01:00
fix: set a maximium sleep time when retrying to connect to the funding source (#2622)
--------- Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
ce0aff206d
commit
7d8fad267a
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ async def check_funding_source() -> None:
|
|||
break
|
||||
|
||||
retry_counter += 1
|
||||
sleep_time = 0.25 * (2**retry_counter)
|
||||
sleep_time = min(0.25 * (2**retry_counter), 60)
|
||||
logger.warning(
|
||||
f"Retrying connection to backend in {sleep_time} seconds... "
|
||||
f"({retry_counter}/{max_retries})"
|
||||
|
|
Loading…
Add table
Reference in a new issue