Skip to content

Commit

Permalink
Switch single-key map deletion from retain to remove (MystenLabs/…
Browse files Browse the repository at this point in the history
  • Loading branch information
aschran committed Sep 9, 2022
1 parent 90918c1 commit d110cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhal/consensus/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl ConsensusState {
self.dag.retain(|r, authorities| {
// We purge certificates for `name` prior to its latest commit
if r < round {
authorities.retain(|n, _| n != name);
authorities.remove(name);
}
!authorities.is_empty()
});
Expand Down

0 comments on commit d110cc5

Please sign in to comment.