mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
no timeout for the sse connection (#1784)
This commit is contained in:
@@ -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: "
|
||||||
|
Reference in New Issue
Block a user