Skip to content

Commit

Permalink
fix:if there may be more logs to replicate, continue to call send_app…
Browse files Browse the repository at this point in the history
…end_entries in next loop, no need to wait heartbeat tick
  • Loading branch information
lichuang committed Jan 4, 2022
1 parent a85055f commit d836d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openraft/src/replication/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ impl<D: AppData, R: AppDataResponse, N: RaftNetwork<D>, S: RaftStorage<D, R>> Re
/// Perform a check to see if this replication stream has more log to replicate
#[tracing::instrument(level = "trace", skip(self))]
pub(self) fn has_more_log(&self) -> bool {
return self.last_log_index > self.matched.index;
self.last_log_index > self.matched.index;
}

#[tracing::instrument(level = "trace", skip(self))]
Expand Down

0 comments on commit d836d85

Please sign in to comment.