addressing LP PR comments

This commit is contained in:
Jędrzej Stuczyński
2026-03-03 14:42:48 +00:00
parent 8de574ec97
commit 28c1637198
24 changed files with 84 additions and 161 deletions
+1 -3
View File
@@ -12,7 +12,7 @@ use nym_lp::session::{LpAction, LpInput};
use nym_lp::transport::LpHandshakeChannel;
use nym_lp::transport::traits::LpTransportChannel;
use nym_lp::{LpTransportSession, packet::message::ExpectedResponseSize};
use nym_metrics::{add_histogram_obs, inc};
use nym_metrics::{add_histogram_obs, inc, inc_by};
use nym_registration_common::{LpRegistrationRequest, RegistrationStatus};
use std::net::SocketAddr;
use std::time::Duration;
@@ -625,8 +625,6 @@ where
/// Emit connection lifecycle metrics
fn emit_lifecycle_metrics(&self, graceful: bool) {
use nym_metrics::inc_by;
// Track connection duration
let duration = self.stats.start_time.elapsed().as_secs_f64();
add_histogram_obs!(