Skip to content

Commit 3e220d0

Browse files
committed
Remove keepalive for metrics
1 parent 05957b9 commit 3e220d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub async fn prometheus_service(
103103
runtime_handle.spawn(async move {
104104
let io = TokioIo::new(stream);
105105
let _ = http1::Builder::new()
106-
.keep_alive(true)
106+
.keep_alive(false)
107107
.serve_connection(
108108
io,
109109
service_fn(move |req| {

0 commit comments

Comments
 (0)