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

[2/5] [3] cluster: move connect to main impl #707

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

0xWOF
Copy link
Contributor

@0xWOF 0xWOF commented Nov 3, 2022

Changes

  • cluster: move connect function to ClusterConnection impl
  • cluster: follow up usage code of connect function

Effect

  • cluster:
    • no public api is changed
    • code is changed but behavior will not be changed

Note

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

This mostly looks good to me.

redis/src/cluster.rs Show resolved Hide resolved
@0xWOF 0xWOF force-pushed the cluster_client_refactor_2_3 branch 2 times, most recently from 2562d6e to 77a165a Compare November 4, 2022 09:59
@0xWOF 0xWOF requested a review from djc November 4, 2022 10:17
@djc
Copy link
Contributor

djc commented Nov 7, 2022

Please rebase. I recommend changing your PRs so each PR targets the previous one's branch instead of main. GitHub will update as the original PR gets merged, and the commit view in this PR is actually useful.

@0xWOF
Copy link
Contributor Author

0xWOF commented Nov 7, 2022

I didn't know that. Thank you for notify to me. I'll rebase it as soon as possible. And I'll apply this rule to other PRs.

cluster: use modified connect method
@0xWOF 0xWOF force-pushed the cluster_client_refactor_2_3 branch from 77a165a to 947fb07 Compare November 7, 2022 12:40
@0xWOF
Copy link
Contributor Author

0xWOF commented Nov 7, 2022

@djc I finish rebase. But I can't satisfy this recommend because I have no permission to create branch on redis-rs/redis-rs repository. And PR of 0xWOF:cluster_client_refactor_2_4 to 0xWOF:cluster_client_refactor_2_3 is not PR of redis-rs/redis-rs repository is PR of 0xWOF/redis-rs repository.

I recommend changing your PRs so each PR targets the previous one's branch instead of main.

1

Instead, I'll create PR one by one after PR 5. If you know other better way, please share to me.
Thanks!

@djc djc merged commit c10919a into redis-rs:main Nov 8, 2022
@djc
Copy link
Contributor

djc commented Nov 8, 2022

Creating them one by one seems reasonable to me, and is actually easier on my GitHub notifications.

@0xWOF 0xWOF deleted the cluster_client_refactor_2_3 branch November 8, 2022 12:53
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

2 participants