lncli: remove error logs

This commit is contained in:
ErikEk
2021-09-06 19:08:21 +02:00
parent e76c4c0e9b
commit 195e57025b
3 changed files with 47 additions and 3 deletions

View File

@@ -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: