diff --git a/CHANGELOG.md b/CHANGELOG.md index f3db32b..6484c0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Version 0.10.5 + +- fix: `self_workers` in `Store.__init__` -> local variable `workers` + ## Version 0.10.4 - chore: GitHub workflow to publish pushes on `main` branch to PyPI diff --git a/pyproject.toml b/pyproject.toml index c41b845..e57d991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "python-redux" -version = "0.10.4" +version = "0.10.5" description = "Redux implementation for Python" authors = ["Sassan Haradji "] license = "Apache-2.0" diff --git a/redux/main.py b/redux/main.py index 6259cd8..e920d86 100644 --- a/redux/main.py +++ b/redux/main.py @@ -91,11 +91,11 @@ def __init__( self._event_handlers_queue = queue.Queue[ tuple[EventHandler[Event], Event] | None ]() - self_workers = [ + workers = [ _SideEffectRunnerThread(self._event_handlers_queue) for _ in range(self.store_options.threads) ] - for worker in self_workers: + for worker in workers: worker.start() self._is_running = Lock()