Skip to content

Commit

Permalink
clippy ding
Browse files Browse the repository at this point in the history
Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Dec 17, 2024
1 parent 15e92d0 commit f46db82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lading/src/blackhole/splunk_hec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ async fn srv(

let (parts, body) = req.into_parts();
let bytes = body.collect().await?.to_bytes();
counter!("bytes_received", &metric_labels).increment(bytes.len() as u64);
counter!("bytes_received", &*labels).increment(bytes.len() as u64);

match crate::codec::decode(parts.headers.get(hyper::header::CONTENT_ENCODING), bytes) {
Err(response) => Ok(response),
Ok(body) => {
counter!("decoded_bytes_received", &metric_labels).increment(body.len() as u64);
counter!("decoded_bytes_received", &*labels).increment(body.len() as u64);

let mut okay = Response::default();
*okay.status_mut() = StatusCode::OK;
Expand Down

0 comments on commit f46db82

Please sign in to comment.