Skip to content

Commit

Permalink
fix(nightly-rust): fix clippy for too long opening paragraph.
Browse files Browse the repository at this point in the history
Signed-off-by: Dat Tien Nguyen <[email protected]>
  • Loading branch information
datbeohbbh committed Oct 15, 2024
1 parent 465c5cd commit baeae3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/confchange/changer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ impl IncrChangeMap<'_> {
}
}

/// Changer facilitates configuration changes. It exposes methods to handle
/// Changer facilitates configuration changes.
///
/// It exposes methods to handle
/// simple and joint consensus while performing the proper validation that allows
/// refusing invalid configuration changes before they affect the active
/// configuration.
Expand Down
3 changes: 3 additions & 0 deletions src/log_unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ use crate::eraftpb::{Entry, Snapshot};
use crate::util::entry_approximate_size;
use slog::Logger;

/// Unstable contains "unstable" log entries and snapshot state that has
/// not yet been written to Storage.
///
/// The `unstable.entries[i]` has raft log position `i+unstable.offset`.
/// Note that `unstable.offset` may be less than the highest log
/// position in storage; this means that the next write to storage
Expand Down
1 change: 1 addition & 0 deletions src/read_only.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub enum ReadOnlyOption {
}

/// ReadState provides state for read only query.
///
/// It's caller's responsibility to send MsgReadIndex first before getting
/// this state from ready. It's also caller's duty to differentiate if this
/// state is what it requests through request_ctx, e.g. given a unique id as
Expand Down

0 comments on commit baeae3a

Please sign in to comment.