OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
63f9ccd
)
Merge pull request #1249 from Bytom/dev
author
Paladz
<yzhu101@uottawa.ca>
Mon, 13 Aug 2018 10:15:23 +0000
(18:15 +0800)
committer
GitHub
<noreply@github.com>
Mon, 13 Aug 2018 10:15:23 +0000
(18:15 +0800)
Dev
node/node.go
patch
|
blob
|
history
diff --git
a/node/node.go
b/node/node.go
index
f439669
..
2c85351
100644
(file)
--- a/
node/node.go
+++ b/
node/node.go
@@
-123,7
+123,9
@@
func NewNode(config *cfg.Config) *Node {
// Profiling bytomd programs.see (https://blog.golang.org/profiling-go-programs)
// go tool pprof http://profileHose/debug/pprof/heap
go func() {
- http.ListenAndServe(profileHost, nil)
+ if err = http.ListenAndServe(profileHost, nil); err != nil {
+ cmn.Exit(cmn.Fmt("Failed to register tcp profileHost: %v", err))
+ }
}()
}