File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -347,8 +347,7 @@ internal async Task<IDriver> BuildDriver()
347347 Password = Password ,
348348 EnableMultipleHttp2Connections = EnableMultipleHttp2Connections ,
349349 MaxSendMessageSize = MaxSendMessageSize ,
350- MaxReceiveMessageSize = MaxReceiveMessageSize ,
351- DisableServerBalancer = DisableServerBalancer
350+ MaxReceiveMessageSize = MaxReceiveMessageSize
352351 } ;
353352 var loggerFactory = LoggerFactory ?? NullLoggerFactory . Instance ;
354353
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public class DriverConfig
2727
2828 public int MaxSendMessageSize { get ; init ; } = GrpcDefaultSettings . MaxSendMessageSize ;
2929 public int MaxReceiveMessageSize { get ; init ; } = GrpcDefaultSettings . MaxReceiveMessageSize ;
30- public bool DisableServerBalancer { get ; init ; } = SessionPoolDefaultSettings . DisableServerBalancer ;
3130
3231 internal X509Certificate2Collection CustomServerCertificates { get ; } = new ( ) ;
3332 internal TimeSpan EndpointDiscoveryInterval = TimeSpan . FromMinutes ( 1 ) ;
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ public class GrpcRequestSettings
88{
99 public string TraceId { get ; set ; } = string . Empty ;
1010 public TimeSpan TransportTimeout { get ; set ; } = TimeSpan . Zero ;
11- public List < string > List { get ; } = new ( ) ;
1211 public CancellationToken CancellationToken = default ;
13-
12+
13+ internal List < string > ClientCapabilities { get ; } = new ( ) ;
1414 internal long NodeId { get ; set ; }
1515 internal Action < Grpc . Core . Metadata > TrailersHandler { get ; set ; } = _ => { } ;
1616}
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ protected async ValueTask<CallOptions> GetCallOptions(GrpcRequestSettings settin
182182 meta . Add ( Metadata . RpcTraceIdHeader , settings . TraceId ) ;
183183 }
184184
185- foreach ( var setting in settings . List ) {
185+ foreach ( var setting in settings . ClientCapabilities ) {
186186 meta . Add ( Metadata . RpcClientCapabilitiesHeader , "session-balancer" ) ;
187187 }
188188
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ protected override async Task<Session> CreateSession(
4242
4343 if ( ! Config . DisableServerBalancer )
4444 {
45- requestSettings . List . Add ( "session-balancer" ) ;
45+ requestSettings . ClientCapabilities . Add ( "session-balancer" ) ;
4646 }
4747
4848 var response = await _driver . UnaryCall (
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ private protected override async Task<GetSessionResponse> CreateSession()
3131
3232 if ( ! Config . DisableServerBalancer )
3333 {
34- createSessionSettings . List . Add ( "session-balancer" ) ;
34+ createSessionSettings . ClientCapabilities . Add ( "session-balancer" ) ;
3535 }
3636
3737 var createSessionResponse = await _tableClient . CreateSession ( createSessionSettings ) ;
You can’t perform that action at this time.
0 commit comments