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

This commit is contained in:
Wilmer Paulino committed 2018-03-19 11:19:06 -04:00
1 parent 7642bad54f
commit 900cd43768
3 files changed
+10 -10

No files matched your search

+2 -2
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