Skip to content
Snippets Groups Projects
Commit 9396ee49 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

Support grpc_custermized_resolve_address

parent ad3b39a0
Branches
Tags
No related merge requests found
...@@ -318,6 +318,12 @@ grpc_ares_request *grpc_resolve_address_ares(grpc_exec_ctx *exec_ctx, ...@@ -318,6 +318,12 @@ grpc_ares_request *grpc_resolve_address_ares(grpc_exec_ctx *exec_ctx,
grpc_error *err; grpc_error *err;
int status; int status;
if ((err = grpc_customized_resolve_address(name, default_port, addrs)) !=
GRPC_ERROR_CANCELLED) {
grpc_exec_ctx_sched(exec_ctx, on_done, err, NULL);
return NULL;
}
grpc_ares_request *r = gpr_malloc(sizeof(grpc_ares_request)); grpc_ares_request *r = gpr_malloc(sizeof(grpc_ares_request));
r->name = gpr_strdup(name); r->name = gpr_strdup(name);
r->default_port = gpr_strdup(default_port); r->default_port = gpr_strdup(default_port);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment