44using System . Security . Cryptography . X509Certificates ;
55using Grpc . Core ;
66using Grpc . Net . Client ;
7- using Grpc . Net . Client . Configuration ;
87using Microsoft . Extensions . Logging ;
98
109namespace Ydb . Sdk . Pool ;
@@ -98,11 +97,7 @@ public GrpcChannel CreateChannel(string endpoint)
9897 LoggerFactory = _loggerFactory ,
9998 DisposeHttpClient = true ,
10099 MaxSendMessageSize = _config . MaxSendMessageSize ,
101- MaxReceiveMessageSize = _config . MaxReceiveMessageSize ,
102- ServiceConfig = new ServiceConfig
103- {
104- LoadBalancingConfigs = { new RoundRobinConfig ( ) }
105- }
100+ MaxReceiveMessageSize = _config . MaxReceiveMessageSize
106101 } ;
107102
108103 var httpHandler = new SocketsHttpHandler
@@ -115,13 +110,13 @@ public GrpcChannel CreateChannel(string endpoint)
115110 } ;
116111
117112 // https://github.com/grpc/grpc-dotnet/issues/2312#issuecomment-1790661801
118- // httpHandler.Properties["__GrpcLoadBalancingDisabled"] = true;
113+ httpHandler . Properties [ "__GrpcLoadBalancingDisabled" ] = true ;
119114
120115 channelOptions . HttpHandler = httpHandler ;
121116
122117 if ( ServerCertificates . Count == 0 )
123118 {
124- return GrpcChannel . ForAddress ( new Uri ( endpoint ) { } , channelOptions ) ;
119+ return GrpcChannel . ForAddress ( endpoint , channelOptions ) ;
125120 }
126121
127122 httpHandler . SslOptions . RemoteCertificateValidationCallback +=
0 commit comments