Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
Signed-off-by: GuyLewin <[email protected]>
  • Loading branch information
GuyLewin committed Jul 3, 2023
1 parent 9db903b commit 19adcb3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,7 @@ impl<T: Storage> Raft<T> {
r.load_state(&raft_state.hard_state);
}
if r.term == 0 {
fatal!(
r.logger,
"Invalid term value: 0"
);
fatal!(r.logger, "Invalid term value: 0");
}
if c.applied > 0 {
r.commit_apply(c.applied);
Expand Down

0 comments on commit 19adcb3

Please sign in to comment.