Skip to content

Commit

Permalink
Correct commits
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Oct 14, 2024
1 parent 73b842d commit b488327
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1556,12 +1556,12 @@ impl Service {
fn require_more_ip_votes(&mut self, is_ipv6: bool) -> bool {
if !matches!(self.ip_mode, IpMode::DualStack) {
return false;
}
};

let Some(ip_votes) = self.ip_votes.as_mut() else {
return false;
}
match (ip_votes.majority(), is_ipv6) {
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) |
// We don't have enough ipv6 votes, but this is an IPv6 node.
Expand All @@ -1570,10 +1570,7 @@ impl Service {
((None, None), _,) => true,
// We have enough votes do nothing.
((_, _), _,) => false,
}
} else {
false
}
}
}

/// A future that maintains the routing table and inserts nodes when required. This returns the
Expand Down

0 comments on commit b488327

Please sign in to comment.