Skip to content

Commit

Permalink
cmd/commands: fix custom message commands
Browse files Browse the repository at this point in the history
The sendcustom and subscribecustom sub commands weren't correctly
categorized and didn't have any usage text set.
  • Loading branch information
guggero committed Nov 6, 2024
1 parent 0e5c724 commit 4bf2469
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/commands/cmd_custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
)

var sendCustomCommand = cli.Command{
Name: "sendcustom",
Name: "sendcustom",
Category: "Peers",
Usage: "Send a custom p2p wire message to a peer",
Flags: []cli.Flag{
cli.StringFlag{
Name: "peer",
Expand Down Expand Up @@ -55,7 +57,10 @@ func sendCustom(ctx *cli.Context) error {
}

var subscribeCustomCommand = cli.Command{
Name: "subscribecustom",
Name: "subscribecustom",
Category: "Peers",
Usage: "Subscribe to incoming custom p2p wire messages from all " +
"peers",
Action: actionDecorator(subscribeCustom),
}

Expand All @@ -65,8 +70,7 @@ func subscribeCustom(ctx *cli.Context) error {
defer cleanUp()

stream, err := client.SubscribeCustomMessages(
ctxc,
&lnrpc.SubscribeCustomMessagesRequest{},
ctxc, &lnrpc.SubscribeCustomMessagesRequest{},
)
if err != nil {
return err
Expand Down

0 comments on commit 4bf2469

Please sign in to comment.