Skip to content

Commit

Permalink
Use handle func rather than handle
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Sep 6, 2019
1 parent d1eaa77 commit b89cd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sachet/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ func main() {

hc := healthcheck.NewMetricsHandler(prometheus.DefaultRegisterer, "sachet")

http.Handle("/-/live", hc)
http.Handle("/-/ready", hc)
http.HandleFunc("/-/live", hc.LiveEndpoint)
http.HandleFunc("/-/ready", hc.ReadyEndpoint)

if os.Getenv("PORT") != "" {
*listenAddress = ":" + os.Getenv("PORT")
Expand Down

0 comments on commit b89cd5c

Please sign in to comment.