@@ -1721,7 +1721,7 @@ where
1721
1721
) ;
1722
1722
self . gossip_promises
1723
1723
. reject_message ( msg_id, & RejectReason :: BlackListedPeer ) ;
1724
- if let Some ( ( peer_score, .., _ ) ) = & mut self . peer_score {
1724
+ if let Some ( ( peer_score, ..) ) = & mut self . peer_score {
1725
1725
peer_score. reject_message (
1726
1726
propagation_source,
1727
1727
msg_id,
@@ -1841,7 +1841,7 @@ where
1841
1841
self . gossip_promises . message_delivered ( & msg_id) ;
1842
1842
1843
1843
// Tells score that message arrived (but is maybe not fully validated yet).
1844
- if let Some ( ( peer_score, .., _ ) ) = & mut self . peer_score {
1844
+ if let Some ( ( peer_score, ..) ) = & mut self . peer_score {
1845
1845
peer_score. validate_message ( propagation_source, & msg_id, & message. topic ) ;
1846
1846
}
1847
1847
@@ -1889,7 +1889,7 @@ where
1889
1889
raw_message : & RawMessage ,
1890
1890
reject_reason : RejectReason ,
1891
1891
) {
1892
- if let Some ( ( peer_score, .., _ ) ) = & mut self . peer_score {
1892
+ if let Some ( ( peer_score, ..) ) = & mut self . peer_score {
1893
1893
if let Some ( metrics) = self . metrics . as_mut ( ) {
1894
1894
metrics. register_invalid_message ( & raw_message. topic ) ;
1895
1895
}
@@ -2085,7 +2085,7 @@ where
2085
2085
2086
2086
/// Applies penalties to peers that did not respond to our IWANT requests.
2087
2087
fn apply_iwant_penalties ( & mut self ) {
2088
- if let Some ( ( peer_score, .., _ ) ) = & mut self . peer_score {
2088
+ if let Some ( ( peer_score, ..) ) = & mut self . peer_score {
2089
2089
for ( peer, count) in self . gossip_promises . get_broken_promises ( ) {
2090
2090
peer_score. add_penalty ( & peer, count) ;
2091
2091
if let Some ( metrics) = self . metrics . as_mut ( ) {
0 commit comments