1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-19 15:35:08 +00:00

Fix http.data

This commit is contained in:
VarMonke 2022-04-27 17:03:32 +05:30
parent 98545347b6
commit b96305f681
2 changed files with 11 additions and 5 deletions

View file

@ -155,9 +155,8 @@ class GHClient:
async def latency(self) -> float:
"""Returns the latency of the client."""
start = datetime.utcnow()
await self.http.session.get(BASE_URL + '/zen')
return (datetime.utcnow() - start).total_seconds()
return await self.http.latency()