Skip to content

Commit

Permalink
Fix the deprecation warning in .common.configuration.container
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed Nov 5, 2024
1 parent 7807f0e commit ef64ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/common/configuration/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _thread_context(
return self.main_context
else:
# thread pool names used in dlt contain originating thread id. use this id over pool id
if m := re.match(r"dlt-pool-(\d+)-", threading.currentThread().getName()):
if m := re.match(r"dlt-pool-(\d+)-", threading.current_thread().name):
thread_id = int(m.group(1))
else:
thread_id = threading.get_ident()
Expand Down

0 comments on commit ef64ee9

Please sign in to comment.