Skip to content

Commit

Permalink
Chore: refine
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Feb 15, 2024
1 parent 57a9716 commit a7d8a43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions openraft/src/raft/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,13 @@ where C: RaftTypeConfig
self.inner.call_core(RaftMsg::InstallCompleteSnapshot { vote, snapshot, tx }, rx).await
}

/// Submit an InstallSnapshot RPC to this Raft node.
/// Receive an `InstallSnapshotRequest`.
///
/// These RPCs are sent by the cluster leader in order to bring a new node or a slow node
/// up-to-speed with the leader (§7).
/// up-to-speed with the leader.
///
/// If receiving is finished `done == true`, it installs the snapshot to the state machine.
/// Nothing will be done if the input snapshot is older than the state machine.
#[tracing::instrument(level = "debug", skip_all)]
pub async fn install_snapshot(
&self,
Expand Down

0 comments on commit a7d8a43

Please sign in to comment.