From dc8ed7e323382fc3e4f3a9e508e2d05fe23d89c8 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Sat, 3 Oct 2020 15:49:32 +0200 Subject: [PATCH] Change variable name --- internal/setup/base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/setup/base.go b/internal/setup/base.go index 44e4b3be5..a086936af 100644 --- a/internal/setup/base.go +++ b/internal/setup/base.go @@ -372,7 +372,7 @@ type healthResponse struct { } // AddHealthCheck adds a /health endpoint to the internal api mux -func AddHealthCheck(router *mux.Router, dbConfig ...config.DatabaseOptions) { +func AddHealthCheck(apiMux *mux.Router, dbConfig ...config.DatabaseOptions) { if len(dbConfig) == 0 { return } @@ -386,7 +386,7 @@ func AddHealthCheck(router *mux.Router, dbConfig ...config.DatabaseOptions) { conns[i] = c } - router.HandleFunc("/health", func(resp http.ResponseWriter, _ *http.Request) { + apiMux.HandleFunc("/health", func(resp http.ResponseWriter, _ *http.Request) { var ( errMsg string code = http.StatusOK