Skip to content

Commit 4dd2ef0

Browse files
committed
chore: rustfmt
1 parent 02220bb commit 4dd2ef0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

crates/hushd/src/api/metrics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ use crate::state::AppState;
1616
/// GET /metrics
1717
pub async fn metrics(State(state): State<AppState>) -> Response {
1818
let dropped = state.audit_forwarder.as_ref().map(|f| f.dropped_total());
19-
let body = state.metrics.render_prometheus(state.uptime_secs(), dropped);
19+
let body = state
20+
.metrics
21+
.render_prometheus(state.uptime_secs(), dropped);
2022
(
2123
[(
2224
header::CONTENT_TYPE,

crates/hushd/src/metrics.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ impl Metrics {
127127
.fetch_add(1, Ordering::Relaxed);
128128
}
129129

130-
pub fn render_prometheus(&self, uptime_secs: i64, audit_forward_dropped: Option<u64>) -> String {
130+
pub fn render_prometheus(
131+
&self,
132+
uptime_secs: i64,
133+
audit_forward_dropped: Option<u64>,
134+
) -> String {
131135
let mut out = String::new();
132136

133137
// Uptime

0 commit comments

Comments
 (0)