tjsonrpc: pass timeout to aiohttp session - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 085b6ca2ab7beaad3210cef65677ce931b4298b2
DIR parent 123b8c17923e9cc06d9444272bead3cb26c206dd
HTML Author: ThomasV <thomasv@electrum.org>
Date: Sat, 2 May 2020 17:25:30 +0200
jsonrpc: pass timeout to aiohttp session
Diffstat:
M electrum/daemon.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/electrum/daemon.py b/electrum/daemon.py
t@@ -107,7 +107,7 @@ def request(config: SimpleConfig, endpoint, args=(), timeout=60):
loop = asyncio.get_event_loop()
async def request_coroutine():
async with aiohttp.ClientSession(auth=auth) as session:
- server = AiohttpClient(session, server_url)
+ server = AiohttpClient(session, server_url, timeout=timeout)
f = getattr(server, endpoint)
response = await f(*args)
return response.data.result