-
Notifications
You must be signed in to change notification settings - Fork 53
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
Node: Exported client configuration types #2023
Node: Exported client configuration types #2023
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
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.
I think most of the changes in this PR are mostly a lateral move. Consider reverting everything but the export changes.
Reverted |
@@ -3954,7 +3959,7 @@ export class BaseClient { | |||
): connection_request.IConnectionRequest { | |||
const readFrom = options.readFrom | |||
? this.MAP_READ_FROM_STRATEGY[options.readFrom] | |||
: undefined; | |||
: connection_request.ReadFrom.Primary; |
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.
why?
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.
I changed that to match the documentation:
valkey-glide/node/src/BaseClient.ts
Lines 267 to 271 in 76257db
/** | |
* Represents the client's read from strategy. | |
* If not set, `Primary` will be used. | |
*/ | |
readFrom?: ReadFrom; |
Signed-off-by: Yury-Fridlyand <[email protected]>
No description provided.