Skip to content

Commit

Permalink
Tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizualni committed Aug 25, 2022
1 parent 230901d commit 837aaba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/pigeon.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
PigeonListenPortENVName = "PIGEON_LISTEN_PORT"
PigeonHealthCheckPort = "PIGEON_HEALTHCHECK_PORT"
)

type pigeonHealthCheck struct {
Expand Down Expand Up @@ -50,7 +50,7 @@ type httpClienter interface {
}

func GetPigonListenPort() int {
listenPort, ok := os.LookupEnv(PigeonListenPortENVName)
listenPort, ok := os.LookupEnv(PigeonHealthCheckPort)

if !ok || listenPort == "" {
log.Fatal("pigeon listen port environment variable is not set")
Expand Down
3 changes: 2 additions & 1 deletion cmd/palomad/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func main() {
go func() {
app.CheckPigeonRunningLooper(cmd.Context(), app.PigeonHTTPClient())
}()

if oldPreRunE != nil {
return oldPreRunE(cmd, args)
}
Expand All @@ -55,7 +56,7 @@ func main() {
// this line is used by starport scaffolding # root/arguments
)

stakingCmd := findCommand(rootCmd, "palomad", "tx", "staking")
stakingCmd := findCommand(rootCmd, "tx", "staking")

oldStakingPreRun := stakingCmd.PersistentPreRunE

Expand Down

0 comments on commit 837aaba

Please sign in to comment.