-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
use golang built-in functions rather than mathutil #56594
Comments
I have worked on this issue @lance6716 |
/assign @Anudhyan |
Thanks a lot @lance6716 |
@lance6716 when will this be reviewed? |
I'll take a look at Monday |
@lance6716 I have updated the code using inbuilt function and it is running without errors. Please check it |
@Anudhyan Please read the issue. Use golang built-in functions like https://pkg.go.dev/builtin#max. And delete |
@lance6716 Do I need to do the same for this file only? [tidb/pkg/util/mathutil/math.go] I have used slices replace custom Max Min functions and removed mathutil.max from line 45 with ^uint64(0). Please guide me if there is any error from my side. I am contributing for the first time! |
No. Delete |
@lance6716 I was working on this issue. This is the first time I am working on issue for TiDB. Please reassign it to me |
@lance6716 are you talking about this change:
|
I don't know where's the code you refer to. I think the issue is clear and I don't know how to provide more details |
Okay, thanks for the clarification! So, @Anudhyan you have to delete mathutil.Max and mathutil.Min and replace them with Go's built-in max and min functions |
The built-in functions are called |
@lance6716 the built in |
Obviously |
/assign @songzhibin97 |
@lance6716: GitHub didn't allow me to assign the following users: songzhibin97. Note that only pingcap members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Enhancement
like we can use
max
rather thantidb/pkg/util/mathutil/math.go
Lines 71 to 80 in 7158ac6
The text was updated successfully, but these errors were encountered: