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

quit peer thread when node become follower #18

Open
baotiao opened this issue Oct 16, 2017 · 0 comments
Open

quit peer thread when node become follower #18

baotiao opened this issue Oct 16, 2017 · 0 comments
Assignees

Comments

@baotiao
Copy link
Contributor

baotiao commented Oct 16, 2017

every node has peer threads even it becomes follower, it is better to quit the peer threads when the node become follower and start the peer threads when it become leader again. Since the only leader requires peer threads to do heartbeat.

@baotiao baotiao self-assigned this Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant