Skip to content
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

RUST-953 Treat load balancers like mongos for readPreference #422

Merged

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Aug 12, 2021

No description provided.

command.set_read_preference(ReadPreference::Secondary {
options: options.clone(),
})
let read_preference = match criteria {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes aren't a functional change, I just happened to be looking at this function and find it easier to read with the inner enum matched on directly.

@abr-egn abr-egn force-pushed the RUST-953/load-balancer-readPreference branch from 9dcb682 to e5bdc41 Compare August 12, 2021 20:20
@abr-egn abr-egn merged commit 53b677a into mongodb:master Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants