mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Fix timeout
This commit is contained in:
parent
5543ca3fa1
commit
0cbe0d54d8
@ -52,7 +52,7 @@ async def request(url: str, headers: dict = None) -> dict:
|
|||||||
headers = {}
|
headers = {}
|
||||||
|
|
||||||
retry = 0
|
retry = 0
|
||||||
async with aiohttp.ClientSession(timeout=30) as session:
|
async with aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=30)) as session:
|
||||||
"""
|
"""
|
||||||
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
|
From https://gist.github.com/foobarna/19c132304e140bf5031c273f6dc27ece # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user