Skip to content

Commit c3daf76

Browse files
authored
Remove unused param (#209)
1 parent b0116cb commit c3daf76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/monitoring/profile_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (p *profileServer) liveProfiler(config *config.Config) func(w http.Response
4040
}
4141

4242
// gcStats display GC stats
43-
func (p *profileServer) gcStats(config *config.Config) func(w http.ResponseWriter, r *http.Request) {
43+
func (p *profileServer) gcStats() func(w http.ResponseWriter, r *http.Request) {
4444
return func(w http.ResponseWriter, r *http.Request) {
4545
stats := &debug.GCStats{}
4646
debug.ReadGCStats(stats)
@@ -59,7 +59,7 @@ func (p *profileServer) gcStats(config *config.Config) func(w http.ResponseWrite
5959
// StartProfilerServer initializes the profiler on http
6060
func StartProfilerServer(config *config.Config, mux *http.ServeMux, logger *logrus.Logger) {
6161
profileServer := &profileServer{}
62-
mux.HandleFunc("/gc_stats", profileServer.gcStats(config))
62+
mux.HandleFunc("/gc_stats", profileServer.gcStats())
6363
mux.HandleFunc("/live_profiler", profileServer.liveProfiler(config))
6464

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

0 commit comments

Comments
 (0)