Skip to content

Commit

Permalink
test: limit aiohttp parallelism
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed Nov 3, 2023
1 parent 7033847 commit d521736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/select-installation-group.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
async def main():
"""Basic Airzone client example."""

async with aiohttp.ClientSession() as aiohttp_session:
connector = aiohttp.TCPConnector(limit=4)
async with aiohttp.ClientSession(connector=connector) as aiohttp_session:
client = AirzoneCloudApi(aiohttp_session, _secrets.AIRZONE_OPTIONS)

try:
Expand Down

0 comments on commit d521736

Please sign in to comment.