mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 15:40:59 +02:00
lncli: remove error logs
This commit is contained in:
@@ -2,6 +2,7 @@ package rpcperms
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
@@ -272,7 +273,13 @@ func (r *InterceptorChain) SubscribeState(req *lnrpc.SubscribeStateRequest,
|
||||
return err
|
||||
}
|
||||
|
||||
// The response stream's context for whatever reason has been
|
||||
// closed. If context is closed by an exceeded deadline we will
|
||||
// return an error.
|
||||
case <-stream.Context().Done():
|
||||
if errors.Is(stream.Context().Err(), context.Canceled) {
|
||||
return nil
|
||||
}
|
||||
return stream.Context().Err()
|
||||
|
||||
case <-r.quit:
|
||||
|
Reference in New Issue
Block a user