Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusSintonen committed Jun 18, 2024
1 parent 121d809 commit 9f13ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/benchmark/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import asyncio
import os
import sys
import time
from concurrent.futures import ThreadPoolExecutor
Expand Down Expand Up @@ -66,7 +65,9 @@ async def aiohttp_get(session: aiohttp.ClientSession, timings: List[int]) -> Non
assert res.status == 200, f"status={res.status}"
timings.append(duration(start))

async with httpcore.AsyncConnectionPool(max_connections=POOL_LIMIT, network_backend=NET_BACKEND()) as pool:
async with httpcore.AsyncConnectionPool(
max_connections=POOL_LIMIT, network_backend=NET_BACKEND()
) as pool:
# warmup
await gather_limited_concurrency(
(httpcore_get(pool, []) for _ in range(REQUESTS)), CONCURRENCY * 2
Expand Down

0 comments on commit 9f13ff5

Please sign in to comment.