File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ def get_retry_strategy(max_retries: int) -> Retry:
2424
2525
2626def get_requests_session (
27- pool_connections_count : int ,
28- pool_max_size : int ,
29- pool_block : bool ,
30- retry_strategy : Optional [Retry ] = None ,
27+ pool_connections_count : int ,
28+ pool_max_size : int ,
29+ pool_block : bool ,
30+ retry_strategy : Optional [Retry ] = None ,
3131) -> requests .Session :
3232 adapter = HTTPAdapter (
3333 max_retries = retry_strategy ,
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ class Settings(pydantic.BaseSettings):
2424 SECRETS_CACHE_TTL : int = int (datetime .timedelta (minutes = 5 ).total_seconds ())
2525
2626 # keep-alive
27- POOL_CONNECTIONS_COUNT : int = 20 # Total pools count
28- POOL_MAX_SIZE : int = 20 # Max connections count per pool/host
29- POOL_BLOCK : bool = True # Wait until connection released
27+ POOL_CONNECTIONS_COUNT : int = 20 # Total pools count
28+ POOL_MAX_SIZE : int = 20 # Max connections count per pool/host
29+ POOL_BLOCK : bool = True # Wait until connection released
3030
3131 # retry
32- MAX_RETRY_COUNT : int = 3 # If `0` then retires will be disabled
32+ MAX_RETRY_COUNT : int = 3 # If `0` then retires will be disabled
3333
3434
3535SETTINGS = Settings ()
You can’t perform that action at this time.
0 commit comments