mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-19 15:35:08 +00:00
Fix http.data
This commit is contained in:
parent
98545347b6
commit
b96305f681
2 changed files with 11 additions and 5 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue