mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
This reverts commit 739933e5b8.
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import logging
|
||||
|
||||
import async_timeout
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def http_get(http_session, url, timeout_seconds=60):
|
||||
with async_timeout.timeout(timeout_seconds):
|
||||
async with http_session.get(url) as response:
|
||||
return await response.json()
|
||||
Reference in New Issue
Block a user