Skip to content

Commit

Permalink
Update src/service.rs
Browse files Browse the repository at this point in the history
Co-authored-by: João Oliveira <[email protected]>
  • Loading branch information
AgeManning and jxs authored Oct 14, 2024
1 parent 860b0a2 commit cccf3f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,9 @@ impl Service {
return false;
}

if let Some(ip_votes) = self.ip_votes.as_mut() {
let Some(ip_votes) = self.ip_votes.as_mut() else {
return false;
}
match (ip_votes.majority(), is_ipv6) {
// We don't have enough ipv4 votes, but this is an IPv4-only node.
((None, Some(_)), false) |
Expand Down

0 comments on commit cccf3f9

Please sign in to comment.