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 bug in provider cache aggregation rage loop #68

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

masih
Copy link
Member

@masih masih commented Jun 28, 2023

The loop responsible for aggregating contextual and chain level extended providers ranges over the values fetched from indexers, passes the values by reference but does not redeclare the value in each iteration.

Redeclare the value to make sure future iterations do not alter the providers already added to slice.

While at it fix similar issues in other places.

The loop responsible for aggregating contextual and chain level extended
providers ranges over the values fetched from indexers, passes the
values by reference but does not redeclare the value in each iteration.

Redeclare the value to make sure future iterations do not alter the
providers already added to slice.

While at it fix similar issues in other places.
@masih masih merged commit 713a74d into main Jun 28, 2023
@masih masih deleted the masih/fix_bug_prov_cache_loop_var branch June 28, 2023 14:15
masih added a commit to ipni/dhfind that referenced this pull request Jun 28, 2023
masih added a commit to ipni/dhfind that referenced this pull request Jun 28, 2023
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.

3 participants