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

Node: Exported client configuration types #2023

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

No description provided.

Signed-off-by: Yury-Fridlyand <[email protected]>
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner July 26, 2024 19:14
Copy link
Collaborator

@acarbonetto acarbonetto left a 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.

@Yury-Fridlyand
Copy link
Collaborator Author

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;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator Author

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:

/**
* Represents the client's read from strategy.
* If not set, `Primary` will be used.
*/
readFrom?: ReadFrom;

@Yury-Fridlyand Yury-Fridlyand merged commit f69904e into valkey-io:main Jul 29, 2024
8 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the node/yuryf-fix-exports branch July 29, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants