From 7f86621ee3c150af982ad2e30522f37e877c258b Mon Sep 17 00:00:00 2001 From: Abraham Egnor Date: Thu, 4 Nov 2021 13:07:23 -0400 Subject: [PATCH] minor: make the `load_balanced` option public --- src/client/options/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/options/mod.rs b/src/client/options/mod.rs index b0f8cba57..c1fde5cce 100644 --- a/src/client/options/mod.rs +++ b/src/client/options/mod.rs @@ -425,6 +425,11 @@ pub struct ClientOptions { #[builder(default)] pub heartbeat_freq: Option, + /// Whether or not the client is connecting to a MongoDB cluster through a load balancer. + #[builder(default, setter(skip))] + #[serde(rename = "loadbalanced")] + pub load_balanced: Option, + /// When running a read operation with a ReadPreference that allows selecting secondaries, /// `local_threshold` is used to determine how much longer the average round trip time between /// the driver and server is allowed compared to the least round trip time of all the suitable @@ -554,11 +559,6 @@ pub struct ClientOptions { #[serde(skip)] pub(crate) resolver_config: Option, - /// Whether or not the client is connecting to a MongoDB cluster through a load balancer. - #[builder(default, setter(skip))] - #[serde(rename = "loadbalanced")] - pub(crate) load_balanced: Option, - /// Control test behavior of the client. #[cfg(test)] #[builder(default, setter(skip))]