server: fix comment to match function name

- goword checks fail if function name mismatches with comment
- https://github.com/etcd-io/etcd/issues/17400

Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
This commit is contained in:
vivekpatani 2024-02-15 19:44:42 -08:00
parent b795a8f662
commit b9b4f1bd1b

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" {