Mergerun profileer in go func

This commit is contained in:
Anton Kaliaev
2019-10-01 23:00:36 -07:00
committed by Jack Zampolin
parent e140093229
commit 800cb2737f
+3 -1
View File
@@ -630,7 +630,9 @@ func NewNode(config *cfg.Config,
}
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{