Browse Source

Mergerun profileer in go func

v0.31
Anton Kaliaev 5 years ago
committed by Jack Zampolin
parent
commit
882e854d10
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      node/node.go

+ 3
- 1
node/node.go View File

@ -630,7 +630,9 @@ func NewNode(config *cfg.Config,
} }
if config.ProfListenAddress != "" { if config.ProfListenAddress != "" {
go logger.Error("Profile server", "err", http.ListenAndServe(config.ProfListenAddress, nil))
go func() {
logger.Error("Profile server", "err", http.ListenAndServe(config.ProfListenAddress, nil))
}()
} }
node := &Node{ node := &Node{


Loading…
Cancel
Save