File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ def from_url(
114
114
cls ,
115
115
url : str ,
116
116
single_connection_client : bool = False ,
117
+ auto_close_connection_pool : bool = True ,
117
118
** kwargs ,
118
119
):
119
120
"""
@@ -163,7 +164,13 @@ class initializer. In the case of conflicting arguments, querystring
163
164
connection_pool = connection_pool ,
164
165
single_connection_client = single_connection_client ,
165
166
)
166
- client .auto_close_connection_pool = True
167
+ # We should probably deprecate the `auto_close_connection_pool`
168
+ # argument.
169
+ # If the caller doesn't want the pool auto-closed, a better
170
+ # pattern is to create the pool manually (maybe using from_url()),
171
+ # pass it in using the `connection_pool`, and hold on to it to close
172
+ # it later.
173
+ client .auto_close_connection_pool = auto_close_connection_pool
167
174
return client
168
175
169
176
@classmethod
You can’t perform that action at this time.
0 commit comments