From 8ddb153a38f84d844715462269c72f6a4a78c589 Mon Sep 17 00:00:00 2001 From: nullswan Date: Thu, 12 Sep 2024 19:41:03 +0000 Subject: [PATCH] style(internal/metrics): add nolint for gosec warning --- internal/metrics/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/metrics/server.go b/internal/metrics/server.go index a442ecb..f221913 100644 --- a/internal/metrics/server.go +++ b/internal/metrics/server.go @@ -23,7 +23,7 @@ func StartServer(log *slog.Logger, cancel context.CancelFunc, port uint32) { http.Handle("/metrics", promhttp.Handler()) log.With("port", port).Info("Starting metrics server") - err := http.ListenAndServe(fmt.Sprintf(":%d", port), nil) + err := http.ListenAndServe(fmt.Sprintf(":%d", port), nil) // nolint:gosec if err != nil { log.With("error", err).Error("Failed to start metrics server") cancel()