Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Apr 2, 2024
1 parent f0c1065 commit 182e135
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions shared/services/config/mev-boost-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ func generateProfileParameter(id string, relays []config.MevRelay, regulated boo
holeskyRelays = append(holeskyRelays, relay.Name)
}
}

holeskyDescription += strings.Join(holeskyRelays, ", ")

return config.Parameter{
Expand Down
3 changes: 2 additions & 1 deletion shared/services/config/stader-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,13 +999,14 @@ func (cfg *StaderConfig) GenerateEnvironmentVariables() map[string]string {
// MEV-Boost
if cfg.EnableMevBoost.Value == true {
config.AddParametersToEnvVars(cfg.MevBoost.GetParameters(), envVars)

if cfg.MevBoost.Mode.Value == config.Mode_Local {
envVars[mevBoostRelaysEnvVar] = cfg.MevBoost.GetRelayString()
envVars[mevBoostUrlEnvVar] = fmt.Sprintf("http://%s:%d", MevBoostContainerName, cfg.MevBoost.Port.Value)

// Handle open API port
if cfg.MevBoost.OpenRpcPort.Value == true {
port := cfg.MevBoost.Port.Value.(uint16)
port, _ := cfg.MevBoost.Port.Value.(uint16)
envVars["MEV_BOOST_OPEN_API_PORT"] = fmt.Sprintf("\"%d:%d/tcp\"", port, port)
}
}
Expand Down
2 changes: 1 addition & 1 deletion stader-cli/service/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func migrate(c *cli.Context) (runBeforeUpgrades, rundAfterUpgrades []ConfigUpgra
},
{
version: v160,
upgradeFunc: func(c *cli.Context) error { return nil },
upgradeFunc: func(_ *cli.Context) error { return nil },
needInstall: true,
},
}
Expand Down

0 comments on commit 182e135

Please sign in to comment.