Skip to content

Commit

Permalink
remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
janezpodhostnik committed Dec 20, 2024
1 parent 4c8ac17 commit 690933f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions module/metrics/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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().
Expand Down

0 comments on commit 690933f

Please sign in to comment.