File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,11 @@ pub struct ClientOptions {
425
425
#[ builder( default ) ]
426
426
pub heartbeat_freq : Option < Duration > ,
427
427
428
+ /// Whether or not the client is connecting to a MongoDB cluster through a load balancer.
429
+ #[ builder( default , setter( skip) ) ]
430
+ #[ serde( rename = "loadbalanced" ) ]
431
+ pub load_balanced : Option < bool > ,
432
+
428
433
/// When running a read operation with a ReadPreference that allows selecting secondaries,
429
434
/// `local_threshold` is used to determine how much longer the average round trip time between
430
435
/// the driver and server is allowed compared to the least round trip time of all the suitable
@@ -554,11 +559,6 @@ pub struct ClientOptions {
554
559
#[ serde( skip) ]
555
560
pub ( crate ) resolver_config : Option < ResolverConfig > ,
556
561
557
- /// Whether or not the client is connecting to a MongoDB cluster through a load balancer.
558
- #[ builder( default , setter( skip) ) ]
559
- #[ serde( rename = "loadbalanced" ) ]
560
- pub ( crate ) load_balanced : Option < bool > ,
561
-
562
562
/// Control test behavior of the client.
563
563
#[ cfg( test) ]
564
564
#[ builder( default , setter( skip) ) ]
You can’t perform that action at this time.
0 commit comments