multi: change to lnrpc.Channel type due to proto update

This commit is contained in:
Wilmer Paulino
2018-03-13 15:11:30 -04:00
parent 7642bad54f
commit 900cd43768
3 changed files with 10 additions and 10 deletions

View File

@@ -818,7 +818,7 @@ func closeAllChannels(ctx *cli.Context) error {
return errors.New("no open channels to close")
}
var channelsToClose []*lnrpc.ActiveChannel
var channelsToClose []*lnrpc.Channel
switch {
case ctx.Bool("force") && ctx.Bool("inactive_only"):
@@ -904,7 +904,7 @@ func closeAllChannels(ctx *cli.Context) error {
// they come.
resultChan := make(chan result, len(channelsToClose))
for _, channel := range channelsToClose {
go func(channel *lnrpc.ActiveChannel) {
go func(channel *lnrpc.Channel) {
res := result{}
res.RemotePubKey = channel.RemotePubkey
res.ChannelPoint = channel.ChannelPoint