From 30e2d98bfcbbff5502b690ec6d34d3bf2cbf296d Mon Sep 17 00:00:00 2001 From: akalex Date: Wed, 17 Jan 2024 11:30:34 +0200 Subject: [PATCH] feat: Refactor base HTTP client to enable request limits to work Fix property `_client` to cover closed connection. --- async_firebase/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async_firebase/base.py b/async_firebase/base.py index 014e6f2..6e31943 100644 --- a/async_firebase/base.py +++ b/async_firebase/base.py @@ -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