Skip to content

Commit

Permalink
feat: Refactor base HTTP client to enable request limits to work
Browse files Browse the repository at this point in the history
Fix property `_client` to cover closed connection.
  • Loading branch information
akalex committed Jan 17, 2024
1 parent 92f1eba commit 30e2d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async_firebase/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _create_http_client() -> httpx.AsyncClient:

if self._http_client is None:
self._http_client = _create_http_client()
elif self._client.is_closed:
elif self._http_client.is_closed:
self._http_client = _create_http_client()

return self._http_client
Expand Down

0 comments on commit 30e2d98

Please sign in to comment.