diff options
author | 2015-11-24 16:58:41 -0800 | |
---|---|---|
committer | 2015-11-24 16:58:41 -0800 | |
commit | 486ea3509e7dc272a6642c5b8e6cb9a68c61c6d7 (patch) | |
tree | 885e0281b43728f4bea2a170878f0f588d6bfbaa /src/core/client_config/resolver.h | |
parent | 2c174944a46418bfffe6606e5d54d9a0908cbdd8 (diff) |
Change saw_error API
Diffstat (limited to 'src/core/client_config/resolver.h')
-rw-r--r-- | src/core/client_config/resolver.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/client_config/resolver.h b/src/core/client_config/resolver.h index 7ba0cd5bd4..09691c0a87 100644 --- a/src/core/client_config/resolver.h +++ b/src/core/client_config/resolver.h @@ -35,8 +35,8 @@ #define GRPC_INTERNAL_CORE_CLIENT_CONFIG_RESOLVER_H #include "src/core/client_config/client_config.h" +#include "src/core/client_config/subchannel.h" #include "src/core/iomgr/iomgr.h" -#include "src/core/iomgr/sockaddr.h" typedef struct grpc_resolver grpc_resolver; typedef struct grpc_resolver_vtable grpc_resolver_vtable; @@ -52,8 +52,7 @@ struct grpc_resolver_vtable { void (*destroy)(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver); void (*shutdown)(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver); void (*channel_saw_error)(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver, - struct sockaddr *failing_address, - int failing_address_len); + grpc_subchannel *subchannel); void (*next)(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver, grpc_client_config **target_config, grpc_closure *on_complete); }; @@ -82,8 +81,7 @@ void grpc_resolver_shutdown(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver); Can be used as a hint that re-resolution is desirable soon. */ void grpc_resolver_channel_saw_error(grpc_exec_ctx *exec_ctx, grpc_resolver *resolver, - struct sockaddr *failing_address, - int failing_address_len); + grpc_subchannel *subchannel); /** Get the next client config. Called by the channel to fetch a new configuration. Expected to set *target_config with a new configuration, |