-
Notifications
You must be signed in to change notification settings - Fork 40
feat: Add S3 Bucket fetch speed improvement #840
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.
lgtm, but why not use a waitgroup and range on the (potentially unbuffered) channel? range would stop iterating when the channel is closed, and no more len(response) business
But the response channel is still needed for the diagnostics, don't see where the WaitGroup would help in that case. |
3ed0f71
to
4c18c8e
Compare
Create the waitgroup/goroutines, send stuff to the channel, close the channel, run a range on the errs channel (will need buffered channel or another, single goroutine to read err results into diags...) and to make sure all workers exited, finally do |
4c18c8e
to
32bec57
Compare
That makes sense, thanks for clarifying, think this should do it? |
32bec57
to
86a1c3f
Compare
86a1c3f
to
201ca71
Compare
201ca71
to
83f70f9
Compare
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
No description provided.