Skip to content

Commit

Permalink
Use local var
Browse files Browse the repository at this point in the history
  • Loading branch information
arjan-bal committed Nov 8, 2024
1 parent 967bc95 commit 7e02615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ func (ac *addrConn) startHealthCheck(ctx context.Context) {
}
// Start the health checking stream.
go func() {
err := internal.HealthCheckFunc(ctx, newStream, setConnectivityState, healthCheckConfig.ServiceName)
err := healthCheckFunc(ctx, newStream, setConnectivityState, healthCheckConfig.ServiceName)
if err != nil {
if status.Code(err) == codes.Unimplemented {
channelz.Error(logger, ac.channelz, "Subchannel health check is unimplemented at server side, thus health check is disabled")
Expand Down

0 comments on commit 7e02615

Please sign in to comment.