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

Fix concurrency loop issue with thumbURL #63

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Fix concurrency loop issue with thumbURL #63

merged 1 commit into from
Jun 27, 2024

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Jun 27, 2024

Need to redefine the loop variable otherwise routines can end up accessing the same variable: https://go.dev/doc/faq#closures_and_goroutines

@mjh1 mjh1 requested review from leszko and thomshutt June 27, 2024 10:38
Copy link

@leszko leszko left a comment

Choose a reason for hiding this comment

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

LGTM, but @mjh1 could you add a PR description with what are the issues caused by this bug?

Just mostly what we discussed recently with @emranemran that each PR should have a description with the reason for change. Thanks!

@mjh1 mjh1 merged commit 790e8a0 into main Jun 27, 2024
8 checks passed
@mjh1 mjh1 deleted the mh/fix branch June 27, 2024 11:02
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