We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a0175a commit 5e79f98Copy full SHA for 5e79f98
cmd/boundary/main.go
@@ -15,8 +15,18 @@ import (
15
16
func init() {
17
go func() {
18
+ //time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000)))
19
+ log.Println("Going to listen on 6060 or 6061")
20
+
21
+ if err := http.ListenAndServe("0.0.0.0:6060", nil); err != nil {
22
+ if err := http.ListenAndServe("0.0.0.0:6061", nil); err != nil {
23
+ log.Println("pprof failed to start on both ports:", err)
24
+ return
25
+ }
26
+ log.Println("pprof listening on :6061")
27
28
29
log.Println("pprof listening on :6060")
- log.Println(http.ListenAndServe("0.0.0.0:6060", nil))
30
}()
31
}
32
0 commit comments