lnd: fix govet warnings
This commit is contained in:
parent
143a6e01bb
commit
92dec2a902
@ -193,7 +193,9 @@ func sendMany(ctx *cli.Context) error {
|
|||||||
client, cleanUp := getClient(ctx)
|
client, cleanUp := getClient(ctx)
|
||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
|
|
||||||
txid, err := client.SendMany(ctxb, &lnrpc.SendManyRequest{amountToAddr})
|
txid, err := client.SendMany(ctxb, &lnrpc.SendManyRequest{
|
||||||
|
AddrToAmount: amountToAddr,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -405,8 +407,6 @@ func openChannel(ctx *cli.Context) error {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(roasbeef): also allow short relative channel ID.
|
// TODO(roasbeef): also allow short relative channel ID.
|
||||||
@ -541,8 +541,6 @@ func closeChannel(ctx *cli.Context) error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var ListPeersCommand = cli.Command{
|
var ListPeersCommand = cli.Command{
|
||||||
@ -676,7 +674,7 @@ func pendingChannels(ctx *cli.Context) error {
|
|||||||
channelStatus = lnrpc.ChannelStatus_ALL
|
channelStatus = lnrpc.ChannelStatus_ALL
|
||||||
}
|
}
|
||||||
|
|
||||||
req := &lnrpc.PendingChannelRequest{channelStatus}
|
req := &lnrpc.PendingChannelRequest{Status: channelStatus}
|
||||||
resp, err := client.PendingChannels(ctxb, req)
|
resp, err := client.PendingChannels(ctxb, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user