Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Jan 31, 2025
1 parent 73bfdf0 commit 4a7ce31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion transports/net/src/packet_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use std::{

use agnostic::{
net::{Net, UdpSocket as _},
time::Instant,
Runtime, RuntimeLite,
};
use byteorder::{ByteOrder, NetworkEndian};
Expand Down Expand Up @@ -116,6 +115,8 @@ where

#[cfg(feature = "metrics")]
{
use agnostic::time::Instant;

metrics::counter!("memberlist.packet.bytes.processing", self.metric_labels.iter()).increment(start.elapsed().as_secs_f64().round() as u64);
}

Expand Down

0 comments on commit 4a7ce31

Please # to comment.