Skip to content

Commit

Permalink
Remove unused param (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
agbpatro authored Sep 6, 2024
1 parent b0116cb commit c3daf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/monitoring/profile_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *profileServer) liveProfiler(config *config.Config) func(w http.Response
}

// gcStats display GC stats
func (p *profileServer) gcStats(config *config.Config) func(w http.ResponseWriter, r *http.Request) {
func (p *profileServer) gcStats() func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
stats := &debug.GCStats{}
debug.ReadGCStats(stats)
Expand All @@ -59,7 +59,7 @@ func (p *profileServer) gcStats(config *config.Config) func(w http.ResponseWrite
// StartProfilerServer initializes the profiler on http
func StartProfilerServer(config *config.Config, mux *http.ServeMux, logger *logrus.Logger) {
profileServer := &profileServer{}
mux.HandleFunc("/gc_stats", profileServer.gcStats(config))
mux.HandleFunc("/gc_stats", profileServer.gcStats())
mux.HandleFunc("/live_profiler", profileServer.liveProfiler(config))

logger.ActivityLog("profiler_started", logrus.LogInfo{"port": config.Monitoring.ProfilerPort})
Expand Down

0 comments on commit c3daf76

Please sign in to comment.