-
Notifications
You must be signed in to change notification settings - Fork 205
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
Conversation
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
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. |
OK |
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.
LGTM
* issue-268 * refactor: centralize the logic of choosing worker Co-authored-by: Arthur Chern <weirong.cwr@gmail.com>
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
}