Skip to content

Commit

Permalink
Update raft.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Nov 16, 2023
1 parent a5527ec commit a10708b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/raft_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use std::cmp;
use slog::warn;
use slog::Logger;

use crate::derializer::format_entry;
use crate::eraftpb::{Entry, Snapshot};
use crate::errors::{Error, Result, StorageError};
use crate::log_unstable::Unstable;
Expand Down Expand Up @@ -359,7 +360,7 @@ impl<T: Storage> RaftLog<T> {
trace!(
self.unstable.logger,
"Entries being appended to unstable list";
"ents" => ?ents,
"ents" => ents.iter().map(|e| format_entry(e)).collect::<Vec<String>>().join(", "),
);
if ents.is_empty() {
return self.last_index();
Expand Down

0 comments on commit a10708b

Please sign in to comment.