Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptex-github committed Aug 23, 2021
1 parent 1125f01 commit 9bdc9c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ferris/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __call__(self, route: SupportsStr, /) -> APIRouter:
return self._make_new(f"{self.__current_route}/{quote(str(route))}")

def request(self, method, /, **kwargs) -> Awaitable[Optional[Data]]:
return self.__http_client.request(method, self.url, **kwargs)
return self.__http_client.request(self.url, method, **kwargs)

def get(self, /, **kwargs) -> Awaitable[Optional[Data]]:
return self.request('GET', **kwargs)
Expand Down Expand Up @@ -148,6 +148,7 @@ async def request(self, url: str, method: str, /, **kwargs) -> Optional[Data]:
bucket = self._buckets_lock.get(bucket_key)
if bucket is None:
self._buckets_lock[bucket_key] = bucket = asyncio.Event()
bucket.set()

headers = {}

Expand Down

0 comments on commit 9bdc9c5

Please sign in to comment.