We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ef9489 commit e3074daCopy full SHA for e3074da
cmd/booster-http/run.go
@@ -50,6 +50,11 @@ var runCmd = &cli.Command{
50
Name: "pprof",
51
Usage: "run pprof web server on localhost:6070",
52
},
53
+ &cli.UintFlag{
54
+ Name: "pprof-port",
55
+ Usage: "the http port to serve pprof on",
56
+ Value: 6070,
57
+ },
58
&cli.StringFlag{
59
Name: "base-path",
60
Usage: "the base path at which to run the web server",
@@ -178,8 +183,9 @@ var runCmd = &cli.Command{
178
183
}
179
184
180
185
if cctx.Bool("pprof") {
186
+ pprofPort := cctx.Int("pprof-port")
181
187
go func() {
182
- err := http.ListenAndServe("localhost:6070", nil)
188
+ err := http.ListenAndServe(fmt.Sprintf("localhost:%d", pprofPort), nil)
189
if err != nil {
190
log.Error(err)
191
0 commit comments