Skip to content

Commit

Permalink
fix: worker ids type
Browse files Browse the repository at this point in the history
  • Loading branch information
Alviner committed May 22, 2023
1 parent f1da824 commit e29383e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiomisc/worker_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class WorkerPool:
initializer_kwargs: Mapping[str, Any]

_supervisor: Popen
worker_ids: Tuple[bytes, ...]
worker_ids: Tuple[str, ...]
pids: Set[int]

if hasattr(socket, "AF_UNIX"):
Expand Down Expand Up @@ -266,7 +266,7 @@ async def start(self) -> None:
del self.socket

self.worker_ids = tuple(
fast_uuid4().bytes for _ in range(self.workers)
str(fast_uuid4()) for _ in range(self.workers)
)
self._supervisor = await self.__create_supervisor(*self.worker_ids)

Expand Down

0 comments on commit e29383e

Please sign in to comment.