From bb53b548102ce700a32c287c1470875c1725fd6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Moyne?= Date: Sat, 12 Aug 2023 14:48:38 -0700 Subject: [PATCH] Remove the gate on a profiling port being defined in the server config for the profilez request to return profiling data even if the server doesn't have a profiling port set. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Noël Moyne --- server/monitor.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/monitor.go b/server/monitor.go index 2579fe1d..64a8259d 100644 --- a/server/monitor.go +++ b/server/monitor.go @@ -3657,11 +3657,6 @@ type ProfilezStatus struct { } func (s *Server) profilez(opts *ProfilezOptions) *ProfilezStatus { - if s.profiler == nil { - return &ProfilezStatus{ - Error: "Profiling is not enabled", - } - } if opts.Name == _EMPTY_ { return &ProfilezStatus{ Error: "Profile name not specified",