From c3daf762faee7905946a4b4da27fa4ff6034765a Mon Sep 17 00:00:00 2001 From: agbpatro Date: Fri, 6 Sep 2024 11:51:32 -0700 Subject: [PATCH] Remove unused param (#209) --- server/monitoring/profile_server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/monitoring/profile_server.go b/server/monitoring/profile_server.go index ccbc5b2..88ad794 100644 --- a/server/monitoring/profile_server.go +++ b/server/monitoring/profile_server.go @@ -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) @@ -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})