Skip to content

Commit 8e55cb2

Browse files
authored
minor: make the load_balanced option public (#510)
1 parent d654857 commit 8e55cb2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/client/options/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ pub struct ClientOptions {
425425
#[builder(default)]
426426
pub heartbeat_freq: Option<Duration>,
427427

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+
428433
/// When running a read operation with a ReadPreference that allows selecting secondaries,
429434
/// `local_threshold` is used to determine how much longer the average round trip time between
430435
/// the driver and server is allowed compared to the least round trip time of all the suitable
@@ -554,11 +559,6 @@ pub struct ClientOptions {
554559
#[serde(skip)]
555560
pub(crate) resolver_config: Option<ResolverConfig>,
556561

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-
562562
/// Control test behavior of the client.
563563
#[cfg(test)]
564564
#[builder(default, setter(skip))]

0 commit comments

Comments
 (0)