Skip to content

Commit

Permalink
fix: used wrong variable
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve committed Feb 28, 2025
1 parent ac72881 commit c0ac5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dogstatsd/src/metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pub fn parse(input: &str) -> Result<Metric, ParseError> {
}
};
let name = Ustr::from(caps.name("name").unwrap().as_str());
let id = id(name, &tags, now);
let id = id(name, &tags, parsed_timestamp);
return Ok(Metric {
name,
value: metric_value,
Expand Down

0 comments on commit c0ac5d0

Please sign in to comment.