no timeout for the sse connection (#1784)

This commit is contained in:
callebtc 2023-06-26 10:02:49 +02:00 committed by GitHub
parent 7e1f43933d
commit d66c83c91a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ class LnTipsWallet(Wallet):
url = "/api/v1/invoicestream" url = "/api/v1/invoicestream"
try: try:
last_connected = time.time() last_connected = time.time()
async with self.client.stream("GET", url) as r: async with self.client.stream("GET", url, timeout=None) as r:
async for line in r.aiter_lines(): async for line in r.aiter_lines():
try: try:
prefix = "data: " prefix = "data: "