Skip to content

Commit

Permalink
Fix CLOB flag parsing for MEV telemetry hosts (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-dydx authored Dec 11, 2023
1 parent 4f5a3c4 commit 06f1fef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions protocol/x/clob/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ func GetClobFlagValuesFromOptions(
}
}

if v, ok := appOpts.Get(MevTelemetryHosts).(string); ok {
result.MevTelemetryHosts = strings.Split(v, ",")
if option := appOpts.Get(MevTelemetryHosts); option != nil {
if v, err := cast.ToStringE(option); err == nil {
result.MevTelemetryHosts = strings.Split(v, ",")
}
}

if option := appOpts.Get(MevTelemetryIdentifier); option != nil {
Expand Down

0 comments on commit 06f1fef

Please sign in to comment.