-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix re-adding autodiscoveries on subsequent calls
The state instance is shared between all subscriber instances. When invoking `#subscribe_to` on it, we changed its own state (the same bucket where handlers defined at the class level are collected). A second invocation was reusing previous discoveries plus re-discovering the same again.
- Loading branch information
1 parent
91ee210
commit 43df11d
Showing
2 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters