Skip to content

Commit

Permalink
Rename Utilization::update to Utilization::ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Oct 9, 2024
1 parent 49508f1 commit be5f09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ where

while running.load(Ordering::Acquire) {
if let Some(segment) = sniffer.next() {
network_utilization.lock().unwrap().update(segment);
network_utilization.lock().unwrap().ingest(segment);
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion src/network/utilization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Utilization {
self.connections.clear();
clone
}
pub fn update(&mut self, seg: Segment) {
pub fn ingest(&mut self, seg: Segment) {
let total_bandwidth = self
.connections
.entry(seg.connection)
Expand Down

0 comments on commit be5f09f

Please sign in to comment.