NO-ISSUE: Updated to new versions
This commit is contained in:
+1
-9
@@ -61,7 +61,7 @@ func (h *healthChecker) stop() {
|
||||
log.Debug("Health checker stopped.")
|
||||
}
|
||||
|
||||
//internal function to process the health check
|
||||
// internal function to process the health check
|
||||
func (h *healthChecker) doCheck() {
|
||||
var msg string
|
||||
h.healthy, msg = h.checkFunc()
|
||||
@@ -73,14 +73,6 @@ func (h *healthChecker) doCheck() {
|
||||
h.lastChecked = time.Now()
|
||||
}
|
||||
|
||||
/* Routes add routes for liveness and readyness probes
|
||||
func (h *healthChecker) Routes() *chi.Mux {
|
||||
router := chi.NewRouter()
|
||||
router.Get("/healthz", h.healthyEndpoint)
|
||||
router.Get("/readyz", h.readinessEndpoint)
|
||||
return router
|
||||
}*/
|
||||
|
||||
/*
|
||||
GetHealthyEndpoint is this service healthy
|
||||
*/
|
||||
|
||||
+3
-2
@@ -13,8 +13,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/creasty/defaults"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/middleware"
|
||||
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/go-chi/chi/v5/middleware"
|
||||
"github.com/go-chi/cors"
|
||||
"github.com/go-chi/render"
|
||||
"scm.yoorie.de/go-lib/certs"
|
||||
|
||||
Reference in New Issue
Block a user