mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
remove 5 seconds timeout (#819)
This commit is contained in:
@@ -72,7 +72,7 @@ class BlinkWallet(LightningBackend):
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
base_url=self.endpoint,
|
||||
timeout=15,
|
||||
timeout=None,
|
||||
)
|
||||
|
||||
async def status(self) -> StatusResponse:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user