Skip to content

Can Raft nodes be reused after a shutdown().await? #318

Answered by drmingdrmer
semirix asked this question in Q&A
Discussion options

You must be logged in to vote

Reusing the struct Raft would be impossible: It creates several channels when initializing. One of the receiving end or sending end of these channels will be dropped after shutdown().

Reusing Arc<Store> or Arc<Network> for a new Raft struct would be OK if, in your implementation, there are not any states in the store or network whose validity depends on a Raft instance.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@semirix
Comment options

@drmingdrmer
Comment options

Answer selected by semirix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants