Skip to content

Commit

Permalink
Set worker thread names as str
Browse files Browse the repository at this point in the history
Since the refactoring 7af66b0 the Cheroot worker threads are
named like "('CP Server Thread-9',)". A leftover comma transformed
the string to a tuple.
  • Loading branch information
jarus committed Apr 22, 2022
1 parent 14e8526 commit 6b7c030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cheroot/workers/threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def start(self):
for worker in self._threads:
worker.name = (
'CP Server {worker_name!s}'.
format(worker_name=worker.name),
format(worker_name=worker.name)
)
worker.start()
for worker in self._threads:
Expand Down Expand Up @@ -228,7 +228,7 @@ def _spawn_worker(self):
worker = WorkerThread(self.server)
worker.name = (
'CP Server {worker_name!s}'.
format(worker_name=worker.name),
format(worker_name=worker.name)
)
worker.start()
return worker
Expand Down

0 comments on commit 6b7c030

Please sign in to comment.