Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
de-duplicate default frontend port references
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Sep 14, 2021
1 parent 4a4117c commit aa66d7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/temporalite/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func buildCLI() *cli.App {
Name: portFlag,
Aliases: []string{"p"},
Usage: "port for the temporal-frontend GRPC service",
Value: defaultCfg.FrontendPort,
Value: liteconfig.DefaultFrontendPort,
},
&cli.StringFlag{
Name: logFormatFlag,
Expand Down
3 changes: 2 additions & 1 deletion internal/liteconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
const (
broadcastAddress = "127.0.0.1"
persistenceStoreName = "sqlite-default"
DefaultFrontendPort = 7233
)

type Config struct {
Expand Down Expand Up @@ -87,7 +88,7 @@ func Convert(cfg *Config) *config.Config {
metricsPort = cfg.portProvider.mustGetFreePort()
pprofPort = cfg.portProvider.mustGetFreePort()
} else {
cfg.FrontendPort = 7233
cfg.FrontendPort = DefaultFrontendPort
metricsPort = cfg.FrontendPort + 200
pprofPort = cfg.FrontendPort + 201
}
Expand Down

0 comments on commit aa66d7e

Please sign in to comment.