mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
b795a8f662
commit
b9b4f1bd1b
@ -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" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user