Skip to content

Commit

Permalink
fix: self_workers in Store.__init__ -> local variable workers
Browse files Browse the repository at this point in the history
fix: `self_workers` in `Store.__init__` -> local variable `workers`

---------

Co-authored-by: Sassan Haradji <[email protected]>
  • Loading branch information
NangWL-Pvt-S and sassanh authored Feb 19, 2024
1 parent af2406e commit 3b24676
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions redux/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3b24676

Please sign in to comment.