peer: ensure latest version of htlcswitch.Peer interface is implemented

This commit is contained in:
Olaoluwa Osuntokun
2017-06-17 00:11:02 +02:00
parent 11f7a227ab
commit e15604f7b5
2 changed files with 24 additions and 24 deletions

View File

@@ -761,7 +761,8 @@ func (r *rpcServer) GetInfo(ctx context.Context,
pendingChannels, err := r.server.fundingMgr.NumPendingChannels()
if err != nil {
return nil, fmt.Errorf("unable to get number of pending channels: %v", err)
return nil, fmt.Errorf("unable to get number of pending "+
"channels: %v", err)
}
idPub := r.server.identityPriv.PubKey().SerializeCompressed()
@@ -1135,6 +1136,8 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
errChan := make(chan error, 1)
payChan := make(chan *lnrpc.SendRequest)
// TODO(roasbeef): check payment filter to see if already used?
// In order to limit the level of concurrency and prevent a client from
// attempting to OOM the server, we'll set up a semaphore to create an
// upper ceiling on the number of outstanding payments.