electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 085b6ca2ab7beaad3210cef65677ce931b4298b2
parent 123b8c17923e9cc06d9444272bead3cb26c206dd
Author: ThomasV <thomasv@electrum.org>
Date:   Sat,  2 May 2020 17:25:30 +0200

jsonrpc: pass timeout to aiohttp session

Diffstat:
Melectrum/daemon.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/daemon.py b/electrum/daemon.py @@ -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