Skip to content

Commit

Permalink
test: skip insert to check FD leak
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve committed Jan 30, 2025
1 parent c7dcafb commit cb4fcde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dogstatsd/src/dogstatsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ impl DogStatsD {
.read()
.await
.expect("didn't receive data");

let msgs = std::str::from_utf8(&buf).expect("couldn't parse as string");
debug!("Received message: {} from {}", msgs, src);
let statsd_metric_strings = msgs.split('\n');
self.insert_metrics(statsd_metric_strings);
//self.insert_metrics(statsd_metric_strings);
}

fn insert_metrics(&self, msg: Split<char>) {
Expand Down

0 comments on commit cb4fcde

Please sign in to comment.