Skip to content

Commit 5e79f98

Browse files
minor fixes
1 parent 7a0175a commit 5e79f98

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

cmd/boundary/main.go

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,18 @@ import (
1515

1616
func init() {
1717
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+
return
28+
}
1829
log.Println("pprof listening on :6060")
19-
log.Println(http.ListenAndServe("0.0.0.0:6060", nil))
2030
}()
2131
}
2232

0 commit comments

Comments
 (0)