Skip to content

Commit ec99c88

Browse files
committed
clippy ding
Signed-off-by: Brian L. Troutwine <[email protected]>
1 parent 4984817 commit ec99c88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lading/src/blackhole/splunk_hec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ async fn srv(
9696

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

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

106106
let mut okay = Response::default();
107107
*okay.status_mut() = StatusCode::OK;

0 commit comments

Comments
 (0)