hanahmily commented on code in PR #671:
URL:
https://github.com/apache/skywalking-banyandb/pull/671#discussion_r2094746074
##########
banyand/liaison/http/server.go:
##########
@@ -283,7 +283,7 @@ func (p *server) Serve() run.StopNotify {
// initGRPCClient initializes or reinitializes the gRPC client with current
credentials.
func (p *server) initGRPCClient() error {
// Clean up any existing client first
- if p.grpcClient != nil {
+ if client := p.grpcClient.Load(); client != nil {
p.l.Debug().Msg("Cleaning up existing gRPC client")
Review Comment:
Your finding is incorrect; oldClient has been closed properly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]