mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
@@ -2093,9 +2093,6 @@ func (s *Server) Start() {
|
||||
// Pprof http endpoint for the profiler.
|
||||
if opts.ProfPort != 0 {
|
||||
s.StartProfiler()
|
||||
} else {
|
||||
// Enable blocking profile even if no port defined since profiling is always possible over $SYS requests
|
||||
runtime.SetBlockProfileRate(1)
|
||||
}
|
||||
|
||||
if opts.ConfigFile != _EMPTY_ {
|
||||
@@ -2697,9 +2694,6 @@ func (s *Server) StartProfiler() {
|
||||
s.profiler = l
|
||||
s.profilingServer = srv
|
||||
|
||||
// Enable blocking profile
|
||||
runtime.SetBlockProfileRate(1)
|
||||
|
||||
go func() {
|
||||
// if this errors out, it's probably because the server is being shutdown
|
||||
err := srv.Serve(l)
|
||||
|
||||
Reference in New Issue
Block a user