|
|
@ -629,6 +629,8 @@ static grpc_lb_policy *round_robin_create(grpc_exec_ctx *exec_ctx, |
|
|
|
if (args->addresses->addresses[i].is_balancer) continue; |
|
|
|
if (args->addresses->addresses[i].is_balancer) continue; |
|
|
|
|
|
|
|
|
|
|
|
memset(&sc_args, 0, sizeof(grpc_subchannel_args)); |
|
|
|
memset(&sc_args, 0, sizeof(grpc_subchannel_args)); |
|
|
|
|
|
|
|
/* server_name will be copied as part of the subchannel creation. This makes
|
|
|
|
|
|
|
|
* the copying of args->server_name (a borrowed pointer) OK. */ |
|
|
|
sc_args.server_name = args->server_name; |
|
|
|
sc_args.server_name = args->server_name; |
|
|
|
sc_args.addr = |
|
|
|
sc_args.addr = |
|
|
|
(struct sockaddr *)(&args->addresses->addresses[i].address.addr); |
|
|
|
(struct sockaddr *)(&args->addresses->addresses[i].address.addr); |
|
|
|