From 690933f3b1a5e193288d461197d6e474f24fe4ed Mon Sep 17 00:00:00 2001 From: Janez Podhostnik Date: Fri, 20 Dec 2024 14:56:39 +0100 Subject: [PATCH] remove unused field --- module/metrics/server.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/module/metrics/server.go b/module/metrics/server.go index 16713a2b03c..09221cb35ce 100644 --- a/module/metrics/server.go +++ b/module/metrics/server.go @@ -26,8 +26,6 @@ type Server struct { address string server *http.Server log zerolog.Logger - - startupCompleted chan struct{} } // NewServer creates a new server that will start on the specified port, @@ -40,10 +38,9 @@ func NewServer(log zerolog.Logger, port uint) *Server { mux.Handle(endpoint, promhttp.Handler()) m := &Server{ - address: addr, - server: &http.Server{Addr: addr, Handler: mux}, - log: log.With().Str("address", addr).Str("endpoint", endpoint).Logger(), - startupCompleted: make(chan struct{}), + address: addr, + server: &http.Server{Addr: addr, Handler: mux}, + log: log.With().Str("address", addr).Str("endpoint", endpoint).Logger(), } m.Component = component.NewComponentManagerBuilder().