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

filelist: only scan parts of bucket when listing files #190

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

adamdecaf
Copy link
Member

No description provided.

@adamdecaf adamdecaf merged commit a4156a2 into master Apr 2, 2024
6 checks passed
@adamdecaf adamdecaf deleted the speedup-file-listing branch April 2, 2024 15:17

files, err := ls.listFilesFromCursor(opts, ls.buck.List(listOptions))
if len(files) > 0 {
go func() {
Copy link

Choose a reason for hiding this comment

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

I'm curious, why do we run a new goroutine here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was running into an issue where the channel send wasn't occurring since the channel requires a reading goroutine.

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