mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user