From f7ae858369a52b8b059d1b0eab7f6b8715d2336e Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 9 Oct 2019 10:39:31 +0100 Subject: [PATCH] server: remove leader protection from all system routes. --- pkg/server/routes.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/server/routes.go b/pkg/server/routes.go index 68ea2f5..d7a83ac 100644 --- a/pkg/server/routes.go +++ b/pkg/server/routes.go @@ -116,16 +116,16 @@ func (h *HTTPServer) setupSystemRoutes() []router.Route { return router.Routes{ router.Route{ - Name: routeSystemHealthName, - Method: http.MethodGet, - Pattern: routeSystemHealthPattern, - Handler: leaderProtectedHandler(h.clusterMember, h.routes.System.GetHealth), + Name: routeSystemHealthName, + Method: http.MethodGet, + Pattern: routeSystemHealthPattern, + HandlerFunc: h.routes.System.GetHealth, }, router.Route{ - Name: routeSystemInfoName, - Method: http.MethodGet, - Pattern: routeSystemInfoPattern, - Handler: leaderProtectedHandler(h.clusterMember, h.routes.System.GetInfo), + Name: routeSystemInfoName, + Method: http.MethodGet, + Pattern: routeSystemInfoPattern, + HandlerFunc: h.routes.System.GetInfo, }, router.Route{ Name: routeGetMetricsName,