Skip to content

minor: make the load_balanced option public #510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/client/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ pub struct ClientOptions {
#[builder(default)]
pub heartbeat_freq: Option<Duration>,

/// 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<bool>,

/// 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
Expand Down Expand Up @@ -554,11 +559,6 @@ pub struct ClientOptions {
#[serde(skip)]
pub(crate) resolver_config: Option<ResolverConfig>,

/// 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<bool>,

/// Control test behavior of the client.
#[cfg(test)]
#[builder(default, setter(skip))]
Expand Down