Skip to content

Commit

Permalink
server: fix comment to match function name
Browse files Browse the repository at this point in the history
- goword checks fail if function name mismatches with comment
- etcd-io#17400

Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
  • Loading branch information
vivekpatani committed Feb 16, 2024
1 parent b795a8f commit b9b4f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/etcdserver/api/etcdhttp/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit b9b4f1b

Please sign in to comment.