Merge pull request #5358 from ErikEk/lnrpc-log-connections-to-transaction-subscription-stream
rpcserver: log connections to transaction subscription stream
This commit is contained in:
commit
2706f1972f
@ -5017,6 +5017,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
||||
return err
|
||||
}
|
||||
defer txClient.Cancel()
|
||||
rpcsLog.Infof("New transaction subscription")
|
||||
|
||||
for {
|
||||
select {
|
||||
@ -5058,6 +5059,7 @@ func (r *rpcServer) SubscribeTransactions(req *lnrpc.GetTransactionsRequest,
|
||||
}
|
||||
|
||||
case <-updateStream.Context().Done():
|
||||
rpcsLog.Infof("Cancelling transaction subscription")
|
||||
return updateStream.Context().Err()
|
||||
|
||||
case <-r.quit:
|
||||
|
Loading…
Reference in New Issue
Block a user