mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
remove unnecessary indirection in config
This commit is contained in:
parent
e0e4791f72
commit
2cae19dde5
2 changed files with 2 additions and 5 deletions
|
|
@ -733,10 +733,7 @@ func (server *Server) applyConfig(config *Config) (err error) {
|
|||
}
|
||||
|
||||
func (server *Server) setupPprofListener(config *Config) {
|
||||
pprofListener := ""
|
||||
if config.Debug.PprofListener != nil {
|
||||
pprofListener = *config.Debug.PprofListener
|
||||
}
|
||||
pprofListener := config.Debug.PprofListener
|
||||
if server.pprofServer != nil {
|
||||
if pprofListener == "" || (pprofListener != server.pprofServer.Addr) {
|
||||
server.logger.Info("server", "Stopping pprof listener", server.pprofServer.Addr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue