lncli: remove error logs

This commit is contained in:
ErikEk committed 2021-09-06 19:12:43 +02:00
1 parent e76c4c0e9b
commit 195e57025b
3 files changed
+47 -3

No files matched your search

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