remove 5 seconds timeout (#819)

This commit is contained in:
lollerfirst
2025-11-04 23:52:18 +01:00
committed by GitHub
parent cf4cbbe882
commit 0041e3a6f2
5 changed files with 5 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ class BlinkWallet(LightningBackend):
"Content-Type": "application/json",
},
base_url=self.endpoint,
timeout=15,
timeout=None,
)
async def status(self) -> StatusResponse:

View File

@@ -80,7 +80,7 @@ class CLNRestWallet(LightningBackend):
self.cert = settings.mint_clnrest_cert or False
self.client = httpx.AsyncClient(
base_url=self.url, verify=self.cert, headers=self.auth
base_url=self.url, verify=self.cert, headers=self.auth, timeout=None,
)
self.last_pay_index = 0

View File

@@ -40,6 +40,7 @@ class LNbitsWallet(LightningBackend):
self.client = httpx.AsyncClient(
verify=not settings.debug,
headers={"X-Api-Key": settings.mint_lnbits_key},
timeout=None,
)
self.ws_url = f"{self.endpoint.replace('http', 'ws', 1)}/api/v1/ws/{settings.mint_lnbits_key}"
self.old_api = True

View File

@@ -100,7 +100,7 @@ class LndRestWallet(LightningBackend):
self.auth = {"Grpc-Metadata-macaroon": self.macaroon}
self.client = httpx.AsyncClient(
base_url=self.endpoint, headers=self.auth, verify=self.cert
base_url=self.endpoint, headers=self.auth, verify=self.cert, timeout=None,
)
if self.supports_mpp:
logger.info("LNDRestWallet enabling MPP feature")

View File

@@ -124,6 +124,7 @@ class StrikeWallet(LightningBackend):
self.client = httpx.AsyncClient(
verify=not settings.debug,
headers=bearer_auth,
timeout=None,
)
async def status(self) -> StatusResponse: