Skip to content

Commit

Permalink
format changes
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <[email protected]>
  • Loading branch information
mwrock committed Nov 6, 2024
1 parent fe1726f commit 316ba85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/butterfly/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,12 +731,14 @@ impl Server {
}
}
} else if health != Health::Alive {
trace!("member incarnation is {}. my incarnation is {}", member.incarnation, self.myself.lock_smr().incarnation());
trace!("member incarnation is {}. my incarnation is {}",
member.incarnation,
self.myself.lock_smr().incarnation());
health = Health::Alive;
if member.incarnation >= self.myself.lock_smr().incarnation() {
self.myself
.lock_smw()
.refute_incarnation(member.incarnation);
.lock_smw()
.refute_incarnation(member.incarnation);
}
}

Expand Down Expand Up @@ -1166,7 +1168,8 @@ impl Server {
election.term,
Some(u64::MAX));
} else {
debug!("Received New Term election and I was not the previous leader. Term: {}",
debug!("Received New Term election and I was not the previous leader. \
Term: {}",
election.term);
self.election_store
.remove_rsw(election.key(), election.id());
Expand Down

0 comments on commit 316ba85

Please sign in to comment.