diff --git a/cmd/flags.go b/cmd/flags.go index 8f56e9e93..a1ba4fae5 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -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) } diff --git a/ibctest/relay_many_test.go b/ibctest/relay_many_test.go index 88ce9a2bc..3c6986db2 100644 --- a/ibctest/relay_many_test.go +++ b/ibctest/relay_many_test.go @@ -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() diff --git a/relayer/strategies.go b/relayer/strategies.go index bd5cf8545..5e1360a08 100644 --- a/relayer/strategies.go +++ b/relayer/strategies.go @@ -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]