Skip to content

Commit

Permalink
remove s.logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Nov 22, 2024
1 parent 12619f1 commit 47b2e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion disperser/apiserver/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewPprofProfiler(httpPort string, logger logging.Logger) *PprofProfiler {
}

// Start the pprof server
func (p *PprofProfiler) Start(logger logging.Logger) {
func (p *PprofProfiler) Start() {
pprofAddr := fmt.Sprintf("%s:%s", "0.0.0.0", p.httpPort)

if err := http.ListenAndServe(pprofAddr, nil); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion disperser/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func (s *DispersalServer) GetRateConfig() *RateConfig {
func (s *DispersalServer) Start(ctx context.Context) error {
pprofProfiler := NewPprofProfiler(s.serverConfig.PprofHttpPort, s.logger)
if s.serverConfig.EnablePprof {
go pprofProfiler.Start(s.logger)
go pprofProfiler.Start()
s.logger.Info("Enabled pprof for disperser apiserver", "port", s.serverConfig.PprofHttpPort)
}

Expand Down

0 comments on commit 47b2e47

Please sign in to comment.