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: increase gogoproto compatibility #145

Merged
merged 4 commits into from
Aug 13, 2024
Merged

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt requested a review from a team as a code owner August 9, 2024 13:15
@julienrbrt julienrbrt requested review from aaronc and tac0turtle August 9, 2024 13:15
@@ -257,8 +257,8 @@ func (p *descriptorProcessor) collectFDs() {
p.fds = append(p.fds, fd)
}

slices.SortFunc(p.fds, func(x, y *descriptorpb.FileDescriptorProto) int {
return strings.Compare(*x.Name, *y.Name)
sort.Slice(p.fds, func(x, y int) bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently, slices.SortFunc is more performant, but this is done in a go routine, so we probably don't really care??

Alternative is to bump to go 1.21, but that won't solve the compatibility issues with v0.47 (min go 1.19)

@julienrbrt julienrbrt merged commit 70f82eb into main Aug 13, 2024
3 checks passed
@julienrbrt julienrbrt deleted the julien/kill-exp branch August 13, 2024 19:33
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.

2 participants