We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e514e3 commit abae6d6Copy full SHA for abae6d6
protocols/gossipsub/src/behaviour.rs
@@ -3214,6 +3214,8 @@ where
3214
}
3215
3216
3217
+ // rpc is only used for metrics code
3218
+ #[allow(unused_variables)]
3219
HandlerEvent::MessagesDropped(rpc) => {
3220
// Account for this in the scoring logic
3221
if let PeerScoreState::Active(peer_score) = &mut self.peer_score {
protocols/gossipsub/src/queue.rs
@@ -116,6 +116,7 @@ impl<T: Ord> Queue<T> {
116
117
118
/// Returns the length of the queue.
119
+ #[cfg(feature = "metrics")]
120
pub(crate) fn len(&self) -> usize {
121
let shared = self.shared.lock().expect("lock to not be poisoned");
122
shared.queue.len()
0 commit comments