Skip to content

Commit

Permalink
Default to events processor (#989)
Browse files Browse the repository at this point in the history
* Default to events processor

* events processor is now default
  • Loading branch information
agouin authored Sep 16, 2022
1 parent 1bcaef3 commit ef5a768
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func debugServerFlags(v *viper.Viper, cmd *cobra.Command) *cobra.Command {
}

func processorFlag(v *viper.Viper, cmd *cobra.Command) *cobra.Command {
cmd.Flags().StringP(flagProcessor, "p", relayer.ProcessorLegacy, "which relayer processor to use")
cmd.Flags().StringP(flagProcessor, "p", relayer.ProcessorEvents, "which relayer processor to use")
if err := v.BindPFlag(flagProcessor, cmd.Flags().Lookup(flagProcessor)); err != nil {
panic(err)
}
Expand Down
1 change: 0 additions & 1 deletion ibctest/relay_many_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestRelayerMultiplePathsSingleProcess(t *testing.T) {
zaptest.NewLogger(t),
ibctestrelayer.CustomDockerImage(relayeribctest.RelayerImageName, "latest", "100:1000"),
ibctestrelayer.ImagePull(false),
ibctestrelayer.StartupFlags("-p", "events"),
).Build(t, client, network)

rep := testreporter.NewNopReporter()
Expand Down
2 changes: 1 addition & 1 deletion relayer/strategies.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func StartRelayer(
return errorChan
case ProcessorLegacy:
if len(paths) != 1 {
panic(fmt.Errorf("only one path supported for legacy processor. pass `-p events` for multiple paths"))
panic(errors.New("only one path supported for legacy processor"))
}
p := paths[0].Path
src, dst := chains[p.Src.ChainID], chains[p.Dst.ChainID]
Expand Down

0 comments on commit ef5a768

Please sign in to comment.