Skip to content

Commit

Permalink
remove vestigal Receiver::stats field
Browse files Browse the repository at this point in the history
  • Loading branch information
haileys committed Jun 28, 2024
1 parent ae63ff6 commit ced8036
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bark/src/receive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub mod queue;
pub mod stream;

pub struct Receiver {
stats: ReceiverStats,
stream: Option<Stream>,
output: OwnedOutput,
}
Expand Down Expand Up @@ -72,7 +71,6 @@ impl Receiver {
pub fn new(output: Output) -> Self {
Receiver {
stream: None,
stats: ReceiverStats::new(),
output: OwnedOutput::new(output),
}
}
Expand Down Expand Up @@ -125,10 +123,6 @@ impl Receiver {
let network_latency = Duration::from_micros(rtt_usec / 2);
stream.latency.observe(network_latency);

if let Some(latency) = stream.network_latency() {
self.stats.set_network_latency(latency);
}

let clock_delta = ClockDelta::from_time_packet(&packet);
stream.clock_delta.observe(clock_delta);
}
Expand All @@ -146,7 +140,6 @@ impl Receiver {
// new stream is taking over! switch over to it
log::info!("new stream beginning: sid={}", header.sid.0);
self.stream = Some(stream);
self.stats.clear();
}

self.stream.as_mut().unwrap()
Expand Down

0 comments on commit ced8036

Please sign in to comment.