Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to events processor #989

Merged
merged 3 commits into from
Sep 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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