Skip to content

Commit

Permalink
fix flag bug
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Dec 10, 2023
1 parent 6d9a0d2 commit 446ed43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge-history-api/cmd/api/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func action(ctx *cli.Context) error {
route.Route(router, cfg, registry)

go func() {
port := utils.ServicePortFlag.Value
port := ctx.Int(utils.ServicePortFlag.Name)
if runServerErr := router.Run(fmt.Sprintf(":%d", port)); runServerErr != nil {
log.Crit("run http server failure", "error", runServerErr)
}
Expand Down

0 comments on commit 446ed43

Please sign in to comment.