Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Feb 8, 2024
1 parent df03499 commit 43724f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion elastic_transport/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.

import asyncio
import inspect
import sys
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion elastic_transport/_node/_http_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _create_aiohttp_session(self) -> None:
a chance to set AiohttpHttpNode.loop
"""
if self._loop is None:
self._loop = get_running_loop()
self._loop = asyncio.get_running_loop()
self.session = aiohttp.ClientSession(
headers=self.headers,
skip_auto_headers=("accept", "accept-encoding", "user-agent"),
Expand Down

0 comments on commit 43724f1

Please sign in to comment.