Skip to content

Commit

Permalink
style: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SkuldNorniern committed Mar 15, 2024
1 parent ba58731 commit edef2ae
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/net/online_fluereflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ pub async fn packet_capture(arg: Args) {
let pkt = flowdata.min_pkt;
let ttl = flowdata.min_ttl;
// trace!(
// "current inputed flow{:?}",
// active_flow.get(&key_value).unwrap()
// "current inputed flow{:?}",
// active_flow.get(&key_value).unwrap()
// );
let flow_key = if is_reverse { &reverse_key } else { &key_value };
if let Some(flow) = active_flow.get_mut(flow_key) {
Expand All @@ -166,10 +166,7 @@ pub async fn packet_capture(arg: Args) {
"{} flow updated",
if is_reverse { "reverse" } else { "forward" }
);
trace!(
"flow key detail: {:?}",
flow_key
);
trace!("flow key detail: {:?}", flow_key);

// Check if the flow has finished
if flags.fin == 1 || flags.rst == 1 {
Expand Down Expand Up @@ -201,7 +198,7 @@ pub async fn packet_capture(arg: Args) {
if flow_timeout > 0 && flow.last < (time - (flow_timeout * 1000)) {
trace!("flow expired");
trace!("flow data: {:?}", flow);

plugin_manager.process_flow_data(*flow).await.unwrap();
records.push(*flow);
expired_flows.push(*key);
Expand Down

0 comments on commit edef2ae

Please sign in to comment.