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.

Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
This commit is contained in:
Jean-Noël Moyne
2023-08-12 14:48:38 -07:00
parent 39eabb4f0a
commit bb53b54810

View File

@@ -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",