Skip to content

Commit

Permalink
gofmt file
Browse files Browse the repository at this point in the history
Change-Id: Ie5f02bba1a63f7592c6f3500db9070e6f1022df0
Signed-off-by: Han Kang <hankang@google.com>
  • Loading branch information
logicalhan committed Jun 5, 2023
1 parent 4c3e52c commit 7f9aeb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/proxy/grpcproxy/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@ func HandleHealth(lg *zap.Logger, mux *http.ServeMux, c *clientv3.Client) {
lg = zap.NewNop()
}
mux.Handle(etcdhttp.PathHealth, etcdhttp.NewHealthHandler(lg,
func(excludedAlarms etcdhttp.AlarmSet, serializable bool, endpoint string) etcdhttp.Health { return checkHealth(c) }, etcdhttp.PathHealth))
func(excludedAlarms etcdhttp.AlarmSet, serializable bool, endpoint string) etcdhttp.Health {
return checkHealth(c)
}, etcdhttp.PathHealth))
}

// HandleProxyHealth registers health handler on '/proxy/health'.
func HandleProxyHealth(lg *zap.Logger, mux *http.ServeMux, c *clientv3.Client) {
if lg == nil {
lg = zap.NewNop()
}
mux.Handle(etcdhttp.PathProxyHealth, etcdhttp.NewHealthHandler(lg, func(excludedAlarms etcdhttp.AlarmSet, serializable bool, endpoint string) etcdhttp.Health { return checkProxyHealth(c) }, etcdhttp.PathProxyMetrics))
mux.Handle(etcdhttp.PathProxyHealth, etcdhttp.NewHealthHandler(lg, func(excludedAlarms etcdhttp.AlarmSet, serializable bool, endpoint string) etcdhttp.Health {
return checkProxyHealth(c)
}, etcdhttp.PathProxyMetrics))
}

func checkHealth(c *clientv3.Client) etcdhttp.Health {
Expand Down

0 comments on commit 7f9aeb3

Please sign in to comment.