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

refactor: centralize the logic of choosing worker #311

Merged
merged 3 commits into from
Oct 18, 2022
Merged

refactor: centralize the logic of choosing worker #311

merged 3 commits into from
Oct 18, 2022

Conversation

QuintinTao
Copy link
Contributor

I added a function in the write_worker.rs to centralize the logic of choosing worker:

pub fn find_worker(table_id: usize, worker_num: usize) -> usize {
table_id % worker_num
}

@archerny
Copy link
Contributor

Thanks for your contribution! We really appreciate it.

This project follows the Conventional Commit Guide. So, I have one suggestion for your PR. I think a more appropriate title
for this PR would be something like:

  • refactor: centralize the logic of choosing worker

Titles like this are more clear and can explain what you have done. Conventions are sometimes annoying, but they make us easy to collaborate with each other.

@archerny
Copy link
Contributor

You can edit the PR title here:
image

@QuintinTao
Copy link
Contributor Author

  • centralize the logic of choosing worker

OK

@QuintinTao QuintinTao changed the title issue-268 centralize the logic of choosing worker Oct 17, 2022
@archerny archerny changed the title centralize the logic of choosing worker refactor: centralize the logic of choosing worker Oct 18, 2022
@QuintinTao QuintinTao requested review from jiacai2050 and chunshao90 and removed request for jiacai2050 and chunshao90 October 18, 2022 05:31
Copy link
Contributor

@chunshao90 chunshao90 left a comment

Choose a reason for hiding this comment

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

LGTM

@chunshao90 chunshao90 merged commit 29fdd77 into apache:main Oct 18, 2022
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* issue-268

* refactor: centralize the logic of choosing worker

Co-authored-by: Arthur Chern <weirong.cwr@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.

4 participants