فهرست منبع

etcdserver/api/etcdhttp: remove unused "HandleHealth" function

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee 7 سال پیش
والد
کامیت
601d8b4677
1فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 5
      etcdserver/api/etcdhttp/metrics.go

+ 0 - 5
etcdserver/api/etcdhttp/metrics.go

@@ -44,11 +44,6 @@ func HandlePrometheus(mux *http.ServeMux) {
 	mux.Handle(pathMetrics, promhttp.Handler())
 }
 
-// HandleHealth registers health handler on '/health'.
-func HandleHealth(mux *http.ServeMux, srv etcdserver.ServerV2) {
-	mux.Handle(PathHealth, NewHealthHandler(func() Health { return checkHealth(srv) }))
-}
-
 // NewHealthHandler handles '/health' requests.
 func NewHealthHandler(hfunc func() Health) http.HandlerFunc {
 	return func(w http.ResponseWriter, r *http.Request) {