fn snapshot_is_within_half_of_threshold(snapshot_last_index: &u64, last_log_index: &u64, threshold: &u64) -> bool {
    // Calculate distance from actor's last log index.
    let distance_from_line = last_log_index.saturating_sub(*snapshot_last_index);

    distance_from_line <= threshold / 2
}
/// Check if the given snapshot data is within half of the configured threshold.
Check if the given snapshot data is within half of the configured threshold.
Check if the given snapshot data is within half of the configured threshold .
fn snapshot_is_within_half_of_threshold(snapshot_last_index: &u64, last_log_index: &u64, threshold: &u64) -> bool {
    // Calculate distance from actor's last log index.
    let distance_from_line = last_log_index.saturating_sub(*snapshot_last_index);
    distance_from_line <= threshold / 2
}
fn snapshot_is_within_half_of_threshold ( snapshot_last_index : & u64 , last_log_index : & u64 , threshold : & u64 ) -> bool { // Calculate distance from actor's last log index. let distance_from_line = last_log_index . saturating_sub ( * snapshot_last_index ) ; distance_from_line <= threshold / 2 }
Check if the given snapshot data is within half of the configured threshold.
Check if the given snapshot data is within half of the configured threshold .
snapshot_last_index
&u64
last_log_index
&u64
threshold
&u64
snapshot_last_index
&u64
last_log_index
&u64
threshold
&u64