chore: fix SessionManagerMetrics typo (#3823)

This commit is contained in:
Dan Cline
2023-07-17 20:40:43 -04:00
committed by GitHub
parent 8b66213e15
commit 9c69f04380
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ pub struct NetworkMetrics {
/// Metrics for SessionManager
#[derive(Metrics)]
#[metrics(scope = "network")]
pub struct SesssionManagerMetrics {
pub struct SessionManagerMetrics {
/// Number of dials that resulted in a peer being added to the peerset
pub(crate) total_dial_successes: Counter,
}

View File

@@ -1,7 +1,7 @@
//! Support for handling peer sessions.
use crate::{
message::PeerMessage,
metrics::SesssionManagerMetrics,
metrics::SessionManagerMetrics,
session::{active::ActiveSession, config::SessionCounter},
};
pub use crate::{message::PeerRequestSender, session::handle::PeerInfo};
@@ -100,7 +100,7 @@ pub struct SessionManager {
/// Used to measure inbound & outbound bandwidth across all managed streams
bandwidth_meter: BandwidthMeter,
/// Metrics for the session manager.
metrics: SesssionManagerMetrics,
metrics: SessionManagerMetrics,
}
// === impl SessionManager ===