Skip to content

Commit 596d81f

Browse files
authored
feat: increase connection pool to avoid warning (#8)
Co-authored-by: Pablo <pjestradac@gmail.com>
1 parent 1a4a37f commit 596d81f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/diffgram/core/core.py

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ def __init__(
3333
):
3434

3535
self.session = requests.Session()
36+
adapter = requests.adapters.HTTPAdapter(pool_connections = 30, pool_maxsize = 30)
37+
self.session.mount('http://', adapter)
38+
self.session.mount('https://', adapter)
3639
self.project_string_id = None
3740

3841
self.debug = debug

0 commit comments

Comments
 (0)