Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listeners: remove mutexes after removing dynamic ListenerAdd call from topic module #36

Open
stapelberg opened this issue Apr 12, 2017 · 0 comments

Comments

@stapelberg
Copy link
Member

It seems like all ListenerAdd calls are done at program startup, except for the topic module’s ListenerAdd call, which is set up whenever the topic for a channel is requested.

We could refactor this code such that a topic listener is always present, which would allow us to remove all dynamic ListenerAdd calls and subsequently all locks.

stapelberg added a commit to stapelberg/frank that referenced this issue May 6, 2017
This drops the github.com/jmoiron/sqlx dependency.

The “settopic” admin command is removed since you can trigger the code
by manually changing the topic instead.

related to issue nnev#36
stapelberg added a commit to stapelberg/frank that referenced this issue May 6, 2017
related to issue nnev#36, as it gets rid of a dynamic listener
stapelberg added a commit to stapelberg/frank that referenced this issue May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant