mirror of https://github.com/grpc/grpc-go.git
xds: Avoid mutex copy in log statement. (#3788)
This commit is contained in:
parent
5f7b337d95
commit
94d8df7536
|
|
@ -53,7 +53,7 @@ func (clientBuilder) Version() version.TransportAPI {
|
||||||
func newClient(cc *grpc.ClientConn, opts xdsclient.BuildOptions) (xdsclient.APIClient, error) {
|
func newClient(cc *grpc.ClientConn, opts xdsclient.BuildOptions) (xdsclient.APIClient, error) {
|
||||||
nodeProto, ok := opts.NodeProto.(*v2corepb.Node)
|
nodeProto, ok := opts.NodeProto.(*v2corepb.Node)
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, fmt.Errorf("xds: unsupported Node proto type: %T, want %T", opts.NodeProto, v2corepb.Node{})
|
return nil, fmt.Errorf("xds: unsupported Node proto type: %T, want %T", opts.NodeProto, (*v2corepb.Node)(nil))
|
||||||
}
|
}
|
||||||
v2c := &client{
|
v2c := &client{
|
||||||
cc: cc,
|
cc: cc,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue