-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: merge InternalMessage into RaftMsg
- Refactor: move internal communication message `SnapshotUpdate` from `InternalMessage` to `RaftMsg`. So that the RaftCore event loop only needs two channel: message channel and shutdown channel. Removes `InternalMessage` channel. - Refactor: merge server state specific loop into one `runtime_loop()`, since every server state has the same logic now.
- Loading branch information
1 parent
caaf2f9
commit d621835
Showing
5 changed files
with
41 additions
and
108 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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