|
|
|
@ -173,7 +173,7 @@ static void client_channel_factory_unref( |
|
|
|
|
|
|
|
|
|
static grpc_subchannel *client_channel_factory_create_subchannel( |
|
|
|
|
grpc_exec_ctx *exec_ctx, grpc_client_channel_factory *cc_factory, |
|
|
|
|
grpc_subchannel_args *args) { |
|
|
|
|
const grpc_subchannel_args *args) { |
|
|
|
|
connector *c = gpr_malloc(sizeof(*c)); |
|
|
|
|
memset(c, 0, sizeof(*c)); |
|
|
|
|
c->base.vtable = &connector_vtable; |
|
|
|
@ -194,7 +194,7 @@ static grpc_subchannel *client_channel_factory_create_subchannel( |
|
|
|
|
static grpc_channel *client_channel_factory_create_channel( |
|
|
|
|
grpc_exec_ctx *exec_ctx, grpc_client_channel_factory *cc_factory, |
|
|
|
|
const char *target, grpc_client_channel_type type, |
|
|
|
|
grpc_channel_args *args) { |
|
|
|
|
const grpc_channel_args *args) { |
|
|
|
|
grpc_channel *channel = |
|
|
|
|
grpc_channel_create(exec_ctx, target, args, GRPC_CLIENT_CHANNEL, NULL); |
|
|
|
|
grpc_resolver *resolver = grpc_resolver_create(target, args); |
|
|
|
@ -235,7 +235,7 @@ grpc_channel *grpc_insecure_channel_create(const char *target, |
|
|
|
|
grpc_client_channel_factory *factory = |
|
|
|
|
(grpc_client_channel_factory *)&client_channel_factory; |
|
|
|
|
grpc_channel *channel = client_channel_factory_create_channel( |
|
|
|
|
&exec_ctx, factory, target, GRPC_CLIENT_CHANNEL_TYPE_REGULAR, NULL); |
|
|
|
|
&exec_ctx, factory, target, GRPC_CLIENT_CHANNEL_TYPE_REGULAR, args); |
|
|
|
|
|
|
|
|
|
grpc_client_channel_factory_unref(&exec_ctx, factory); |
|
|
|
|
grpc_exec_ctx_finish(&exec_ctx); |
|
|
|
|