forked from databendlabs/openraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Initiate replication per event loop
When a replication response is handled, RaftCore should initiate next replication if there are more logs to to replicate. Before this commit this is done in response-handler. In this commit it is moved to `RaftCore::runtime_loop`: replications are re-initiated when all of the events are processed. This way the replication response handler is simplified.
- Loading branch information
1 parent
f1792dc
commit 460d158
Showing
2 changed files
with
7 additions
and
17 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