-
Notifications
You must be signed in to change notification settings - Fork 196
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
simplify the if/else logic #191
Conversation
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.
thanks! rest LGTM
pkg/diff/chunk.go
Outdated
@@ -243,25 +243,26 @@ func (s *randomSpliter) splitRange(db *sql.DB, chunk *chunkRange, count int, sch | |||
symbolMax = chunk.bounds[colNum-1].upperSymbol | |||
} else { | |||
// choose the next column to split data |
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.
please move this comment to L250
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.
done PTAL @WangXiangUSTC
LGTM |
* sync_diff_inspector: fix a misleading regex example in config.toml (#141) * update pkg about database (#142) * diff: add database name and table name router (#172) * simplify the if/else logic (#179) refactor to simplify the if/else logic * diff: can use multiple columns to split chunks (#130) * simplify the if/else logic (#191)
What problem does this PR solve?
simplify the if/else logic
What is changed and how it works?
refactor to simplify the if/else logic
Check List
Tests
Code changes
Side effects
Related changes