Merge pull request #17433 from vivekpatani/fix-goword

server: fix comment to match function name
This commit is contained in:
Benjamin Wang 2024-02-16 08:30:49 +00:00 committed by GitHub
commit c6e948893d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ type serverHealthV2V3 interface {
Leader() types.ID
}
// HandleHealth registers metrics and health handlers for v2.
// HandleHealthForV2 registers metrics and health handlers for v2.
func HandleHealthForV2(lg *zap.Logger, mux *http.ServeMux, srv etcdserver.ServerV2) {
mux.Handle(PathHealth, NewHealthHandler(lg, func(ctx context.Context, excludedAlarms StringSet, serializable bool) Health {
if h := checkAlarms(lg, srv, excludedAlarms); h.Health != "true" {