test: remove unnecessary sleep before pendingChannels query

This commit is contained in:
Olaoluwa Osuntokun committed 2017-05-15 18:21:05 -07:00
1 parent 80598dff11
commit bc1a228645
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -573,6 +573,9 @@ func (r *rpcServer) CloseChannel(in *lnrpc.CloseChannelRequest,
// then we'll also purge all of its indexes.
remotePub := &channel.StateSnapshot().RemoteIdentity
if peer, err := r.server.findPeer(remotePub); err == nil {
// TODO(roasbeef): actually get the active channel
// instead too?
// * so only need to grab from database
wipeChannel(peer, channel)
} else {
chanID := lnwire.NewChanIDFromOutPoint(channel.ChannelPoint())