@@ -26,7 +26,7 @@ using namespace NApi::NRpcProxy;
2626TProxyDiscoveryRequest::operator size_t () const
2727{
2828 return MultiHash (
29- Type ,
29+ Kind ,
3030 Role,
3131 AddressType,
3232 NetworkName,
@@ -37,8 +37,8 @@ TProxyDiscoveryRequest::operator size_t() const
3737
3838void FormatValue (TStringBuilderBase* builder, const TProxyDiscoveryRequest& request, TStringBuf /* spec*/ )
3939{
40- builder->AppendFormat (" {Type : %v, Role: %v, AddressType: %v, NetworkName: %v, IgnoreBalancers: %v}" ,
41- request.Type ,
40+ builder->AppendFormat (" {Kind : %v, Role: %v, AddressType: %v, NetworkName: %v, IgnoreBalancers: %v}" ,
41+ request.Kind ,
4242 request.Role ,
4343 request.AddressType ,
4444 request.NetworkName ,
@@ -97,7 +97,7 @@ class TProxyDiscoveryCache
9797
9898 TYPath path;
9999 try {
100- path = GetProxyRegistryPath (request.Type ) + " /@" ;
100+ path = GetProxyRegistryPath (request.Kind ) + " /@" ;
101101 } catch (const std::exception& ex) {
102102 YT_LOG_ERROR (ex, " Failed to get proxy registry path" );
103103 return MakeFuture<std::optional<TProxyDiscoveryResponse>>(ex);
@@ -130,7 +130,7 @@ class TProxyDiscoveryCache
130130
131131 TYPath path;
132132 try {
133- path = GetProxyRegistryPath (request.Type );
133+ path = GetProxyRegistryPath (request.Kind );
134134 } catch (const std::exception& ex) {
135135 YT_LOG_ERROR (ex, " Failed to get proxy registry path" );
136136 return MakeFuture<TProxyDiscoveryResponse>(ex);
@@ -168,12 +168,12 @@ class TProxyDiscoveryCache
168168 }
169169
170170
171- static TYPath GetProxyRegistryPath (EProxyType type)
171+ static TYPath GetProxyRegistryPath (EProxyKind type)
172172 {
173173 switch (type) {
174- case EProxyType ::Rpc:
174+ case EProxyKind ::Rpc:
175175 return RpcProxiesPath;
176- case EProxyType ::Grpc:
176+ case EProxyKind ::Grpc:
177177 return GrpcProxiesPath;
178178 default :
179179 THROW_ERROR_EXCEPTION (" Proxy type %Qlv is not supported" ,
0 commit comments