Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
noisersup committed Jun 26, 2024
1 parent 3d0f96d commit 6db982c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/util/debug/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ func RunHandler(ctx context.Context, addr string, r prometheus.Registerer, l *za
}
must.NoError(statsviz.Register(http.DefaultServeMux, opts...))

http.HandleFunc("/debug/started", func(r http.ResponseWriter, _ *http.Request) {
http.Handle("/debug/started", promhttp.InstrumentMetricHandler(r, http.HandlerFunc(func(rw http.ResponseWriter, _ *http.Request) {
// TODO https://github.com/FerretDB/FerretDB/issues/4306
r.WriteHeader(http.StatusOK)
})
rw.WriteHeader(http.StatusOK)
})))

Check warning on line 62 in internal/util/debug/debug.go

View check run for this annotation

Codecov / codecov/patch

internal/util/debug/debug.go#L61-L62

Added lines #L61 - L62 were not covered by tests

// healthz handler, which is used for liveness probe, returns StatusOK when reached.
// This ensures that listener is running.
Expand Down

0 comments on commit 6db982c

Please sign in to comment.