File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,12 @@ class Config:
191
191
env_prefix = "atlan_"
192
192
193
193
@classmethod
194
- def init_for_thread (cls , client : AtlanClient ):
194
+ def init_for_multithreading (cls , client : AtlanClient ):
195
195
"""
196
- Prepares the given client for use in the current thread .
196
+ Prepares the given client for use in multi-threaded environments .
197
197
198
- Sets the thread-local context and
199
- resets internal retry flags for multi-threaded environments .
198
+ This sets the thread-local context and resets internal retry flags
199
+ to ensure correct behavior when using the client across multiple threads .
200
200
"""
201
201
AtlanClient .set_current_client (client )
202
202
client ._401_tls .has_retried = False
@@ -233,7 +233,7 @@ def __init__(self, **data):
233
233
adapter = HTTPAdapter (max_retries = self .retry )
234
234
session .mount (HTTPS_PREFIX , adapter )
235
235
session .mount (HTTP_PREFIX , adapter )
236
- AtlanClient .init_for_thread (self )
236
+ AtlanClient .init_for_multithreading (self )
237
237
238
238
@property
239
239
def admin (self ) -> AdminClient :
You can’t perform that action at this time.
0 commit comments