File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func (p *profileServer) liveProfiler(config *config.Config) func(w http.Response
40
40
}
41
41
42
42
// 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 ) {
44
44
return func (w http.ResponseWriter , r * http.Request ) {
45
45
stats := & debug.GCStats {}
46
46
debug .ReadGCStats (stats )
@@ -59,7 +59,7 @@ func (p *profileServer) gcStats(config *config.Config) func(w http.ResponseWrite
59
59
// StartProfilerServer initializes the profiler on http
60
60
func StartProfilerServer (config * config.Config , mux * http.ServeMux , logger * logrus.Logger ) {
61
61
profileServer := & profileServer {}
62
- mux .HandleFunc ("/gc_stats" , profileServer .gcStats (config ))
62
+ mux .HandleFunc ("/gc_stats" , profileServer .gcStats ())
63
63
mux .HandleFunc ("/live_profiler" , profileServer .liveProfiler (config ))
64
64
65
65
logger .ActivityLog ("profiler_started" , logrus.LogInfo {"port" : config .Monitoring .ProfilerPort })
You can’t perform that action at this time.
0 commit comments