Merge pull request #393 from arcbtc/FastAPI

cln sse should be working
This commit is contained in:
Arc
2021-11-03 22:56:16 +00:00
committed by GitHub
+1 -3
View File
@@ -187,9 +187,7 @@ class SparkWallet(Wallet):
while True:
try:
async with httpx.AsyncClient(
timeout=None, headers=self.token
) as client:
async with httpx.AsyncClient(timeout=None) as client:
async with client.stream("GET", url) as r:
async for line in r.aiter_lines():
if line.startswith("data:"):