mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-05 14:01:39 +00:00
jsonrpc: pass timeout to aiohttp session
This commit is contained in:
parent
123b8c1792
commit
085b6ca2ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue