Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
server: remove leader protection from all system routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasell committed Oct 9, 2019
1 parent d0eecb2 commit f7ae858
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/server/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7ae858

Please sign in to comment.