Change variable name

This commit is contained in:
Till Faelligen 2020-10-03 15:49:32 +02:00
parent 924db7c341
commit dc8ed7e323

View file

@ -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