Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
h5law committed Jul 25, 2023
1 parent 1cbc249 commit ffbc539
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions app/client/cli/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const (
PromptSendBlockRequest string = "BlockRequest (broadcast)"
)

<<<<<<< HEAD
var items = []string{
PromptPrintNodeState,
PromptTriggerNextView,
Expand All @@ -40,30 +39,6 @@ func init() {
rootCmd.AddCommand(dbgUI)
}

=======
var (
items = []string{
PromptPrintNodeState,
PromptTriggerNextView,
PromptTogglePacemakerMode,
PromptResetToGenesis,
PromptShowLatestBlockInStore,
PromptSendMetadataRequest,
PromptSendBlockRequest,
}
)

func init() {
dbgUI := newDebugUICommand()
dbgUI.AddCommand(newDebugUISubCommands()...)
rootCmd.AddCommand(dbgUI)

dbg := newDebugCommand()
dbg.AddCommand(debugCommands()...)
rootCmd.AddCommand(dbg)
}

>>>>>>> main
// newDebugUISubCommands builds out the list of debug subcommands by matching the
// handleSelect dispatch to the appropriate command.
// * To add a debug subcommand, you must add it to the `items` array and then
Expand All @@ -74,7 +49,7 @@ func newDebugUISubCommands() []*cobra.Command {
commands[idx] = &cobra.Command{
Use: promptItem,
PersistentPreRunE: helpers.P2PDependenciesPreRunE,
Run: func(cmd *cobra.Command, args []string) {
Run: func(cmd *cobra.Command, _ []string) {
handleSelect(cmd, cmd.Use)
},
ValidArgs: items,
Expand Down

0 comments on commit ffbc539

Please sign in to comment.