-
Notifications
You must be signed in to change notification settings - Fork 6.4k
feat(hydrator): parallelize repo-server calls (#24451) #24436
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
Conversation
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
Signed-off-by: Michael Crenshaw <[email protected]>
❌ Preview Environment deleted from BunnyshellAvailable commands (reply to this comment):
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24436 +/- ##
=========================================
Coverage ? 60.27%
=========================================
Files ? 350
Lines ? 60009
Branches ? 0
=========================================
Hits ? 36171
Misses ? 20928
Partials ? 2910 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Michael Crenshaw <[email protected]>
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
} | ||
paths := []*commitclient.PathDetails{pathDetails} | ||
|
||
eg, ctx := errgroup.WithContext(context.Background()) |
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.
Interesting usage of errgroup. It seems that you are using it just to avoid having to do wg.Add(1)
? In go 1.25 this baked directly in the sync package:
https://antonz.org/go-1-25/#go-wait-group-go
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.
I'm using it for the error handling and fail-fast context. I'm hoping those will make their way into the standard library soon as well.
…roj#24436) Signed-off-by: Michael Crenshaw <[email protected]> Signed-off-by: Mangaal <[email protected]>
Closes #24451