From 68fa6209b284a83fcc9879a73b463de6a6cb4683 Mon Sep 17 00:00:00 2001 From: Age Manning Date: Mon, 4 Dec 2023 15:25:44 +1100 Subject: [PATCH] Fix warnings --- protocols/gossipsub/src/behaviour.rs | 1 - protocols/gossipsub/src/metrics.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/protocols/gossipsub/src/behaviour.rs b/protocols/gossipsub/src/behaviour.rs index 827af6a2532..8f72acb63bf 100644 --- a/protocols/gossipsub/src/behaviour.rs +++ b/protocols/gossipsub/src/behaviour.rs @@ -63,7 +63,6 @@ use crate::types::{PeerConnections, PeerKind}; use crate::{backoff::BackoffStorage, types::RpcSender}; use crate::{ config::{Config, ValidationMode}, - rpc_proto, types::RpcOut, }; use crate::{rpc_proto::proto, TopicScoreParams}; diff --git a/protocols/gossipsub/src/metrics.rs b/protocols/gossipsub/src/metrics.rs index 639b563f5f5..6b21b0685f8 100644 --- a/protocols/gossipsub/src/metrics.rs +++ b/protocols/gossipsub/src/metrics.rs @@ -31,7 +31,7 @@ use prometheus_client::metrics::histogram::{linear_buckets, Histogram}; use prometheus_client::registry::Registry; use crate::topic::TopicHash; -use crate::types::{MessageAcceptance, PeerKind, RpcOut}; +use crate::types::{MessageAcceptance, PeerKind}; // Default value that limits for how many topics do we store metrics. const DEFAULT_MAX_TOPICS: usize = 300;