diff --git a/pkg/action/server.go b/pkg/action/server.go index 3be04b3..e2ddf78 100644 --- a/pkg/action/server.go +++ b/pkg/action/server.go @@ -133,7 +133,7 @@ func Server(cfg *config.Config, logger log.Logger) error { <-stop return nil - }, func(err error) { + }, func(_ error) { close(stop) }) } @@ -160,14 +160,14 @@ func handler(cfg *config.Config, logger log.Logger) *chi.Mux { prom.ServeHTTP(w, r) }) - root.Get("/healthz", func(w http.ResponseWriter, r *http.Request) { + root.Get("/healthz", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(http.StatusOK) io.WriteString(w, http.StatusText(http.StatusOK)) }) - root.Get("/readyz", func(w http.ResponseWriter, r *http.Request) { + root.Get("/readyz", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/plain") w.WriteHeader(http.StatusOK) @@ -175,7 +175,7 @@ func handler(cfg *config.Config, logger log.Logger) *chi.Mux { }) if cfg.Target.Engine == "http" { - root.Get("/sd", func(w http.ResponseWriter, r *http.Request) { + root.Get("/sd", func(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "application/json; charset=utf-8") content, err := os.ReadFile(cfg.Target.File)