Skip to content

Commit

Permalink
Merge pull request #13 from nmndigital/chore/max-pool-connections
Browse files Browse the repository at this point in the history
chore: max pool connections
  • Loading branch information
haihuynhDF authored May 21, 2024
2 parents 8c6e902 + 6daf63c commit 48debf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqs_client/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from logging import exception

import boto3
from botocore.config import Config

from sqs_client.task import Task

Expand All @@ -17,6 +18,7 @@ def __init__(
region_name=None,
aws_access_key_id=None,
aws_secret_access_key=None,
max_pool_connections: int = 10,
):
"""
Initializes the SQSClient class.
Expand All @@ -34,11 +36,13 @@ def __init__(
be used. You only need to provide this argument if you want
to override the credentials used for this specific client.
"""
config = Config(max_pool_connections=max_pool_connections)
self._boto3_client = boto3.client(
"sqs",
region_name=region_name,
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,
config=config,
)
self._list_queue_urls = None
self._task_list = {}
Expand Down

0 comments on commit 48debf6

Please sign in to comment.