-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(read-preference): unify means of read preference resolution #1738
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with two very tiny nits
lib/utils.js
Outdated
* properly constructed instance of `ReadPreference`. | ||
* | ||
* @param {Object} options The options passed into the method, potentially containing a readPreference | ||
* @param {Object} sources Sources where we can inherit default read preference from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Sources from which we can inherit default read preference"
lib/utils.js
Outdated
* | ||
* @param {Object} options The options passed into the method, potentially containing a readPreference | ||
* @param {Object} sources Sources where we can inherit default read preference from | ||
* @returns {ReadPreference} the resolved read preference, if found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the" should be capitalized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
…godb#1738) * feat(read-preference): unify means of read preference resolution NODE-1515
NODE-1515