Skip to content

chore: set the default value for the options.protocol in the init() of options#3387

Merged
ndyakov merged 2 commits into
redis:masterfrom
cxljs:chore/option-protocol
May 27, 2025
Merged

chore: set the default value for the options.protocol in the init() of options#3387
ndyakov merged 2 commits into
redis:masterfrom
cxljs:chore/option-protocol

Conversation

@cxljs

@cxljs cxljs commented May 23, 2025

Copy link
Copy Markdown
Contributor

When the user does not set the protocol option, initConn() sets protocol=3. We can move this behavior of setting the default protocol value to init() of options, so that all default option settings are unified in init().

@cxljs cxljs changed the title chore: set the default value for the options.protocol in the init() of options` chore: set the default value for the options.protocol in the init() of options May 23, 2025
…)` of `options`

Signed-off-by: fukua95 <fukua95@gmail.com>
@cxljs cxljs force-pushed the chore/option-protocol branch from 0a0215c to b0141f0 Compare May 23, 2025 08:55
@ndyakov

ndyakov commented May 23, 2025

Copy link
Copy Markdown
Member

@fukua95 would you please update the test case to cover this as well? Also, a short description in the PR body will help us later when we are preparing release notes.

@cxljs

cxljs commented May 23, 2025

Copy link
Copy Markdown
Contributor Author

@fukua95 would you please update the test case to cover this as well? Also, a short description in the PR body will help us later when we are preparing release notes.

My bad. I will update it.

Signed-off-by: fukua95 <fukua95@gmail.com>
@ndyakov ndyakov self-requested a review May 27, 2025 11:53

@ndyakov ndyakov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@ndyakov ndyakov merged commit 28a3c97 into redis:master May 27, 2025
16 checks passed
ofekshenawa pushed a commit to ofekshenawa/go-redis that referenced this pull request Jun 30, 2025
…)` of `options` (redis#3387)

* chore: set the default value for the `options.protocol` in the `init()` of `options`

Signed-off-by: fukua95 <fukua95@gmail.com>

* add a test

Signed-off-by: fukua95 <fukua95@gmail.com>

---------

Signed-off-by: fukua95 <fukua95@gmail.com>
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
…)` of `options` (#3387)

* chore: set the default value for the `options.protocol` in the `init()` of `options`

Signed-off-by: fukua95 <fukua95@gmail.com>

* add a test

Signed-off-by: fukua95 <fukua95@gmail.com>

---------

Signed-off-by: fukua95 <fukua95@gmail.com>
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.

2 participants