Adding async support for AWSSigV4 (#254)
* Adding async support for AWSSigV4 Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix names for connection classes Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Update tests to async name space Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Add import exceptions to python < 3.6 Signed-off-by: Harsha Vamsi Kalluri <[email protected]> Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
This commit is contained in:
@@ -99,9 +99,7 @@ class RequestsHttpConnection(Connection):
|
||||
|
||||
# Mount http-adapter with custom connection-pool size. Default=10
|
||||
if pool_maxsize and isinstance(pool_maxsize, int):
|
||||
pool_adapter = requests.adapters.HTTPAdapter(
|
||||
pool_maxsize=pool_maxsize
|
||||
)
|
||||
pool_adapter = requests.adapters.HTTPAdapter(pool_maxsize=pool_maxsize)
|
||||
self.session.mount("http://", pool_adapter)
|
||||
self.session.mount("https://", pool_adapter)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user