remove success var
This commit is contained in:
parent
fbafe2b8f1
commit
36952981c2
1 changed files with 1 additions and 2 deletions
|
|
@ -84,8 +84,7 @@ def create_app(config_object="lnbits.settings") -> FastAPI:
|
||||||
def check_funding_source(app: FastAPI) -> None:
|
def check_funding_source(app: FastAPI) -> None:
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def check_wallet_status():
|
async def check_wallet_status():
|
||||||
success = False
|
while True:
|
||||||
while not success:
|
|
||||||
error_message, balance = await WALLET.status()
|
error_message, balance = await WALLET.status()
|
||||||
if not error_message:
|
if not error_message:
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue