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: iterate over keys manually in ProvideMany #74

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

Jorropo
Copy link
Contributor

@Jorropo Jorropo commented Jun 8, 2023

Consumers use type assertions to know if it is safe to send us ProvideMany calls, however we would silently drop them on the floor which is uncool. Fallback to iterating instead.

Something smarter like doing X many concurrent workers might be nice but I feel this needs to go with a bigger DHT refactor and have ProvideMany operations on all router types.

Consumers use type assertions to know if it is safe to send us ProvideMany calls, however we would silently drop them on the floor which is uncool.
Fallback to iterating instead.

Something smarter like doing X many concurrent workers might be nice but I feel this needs to go with a bigger DHT refactor and have ProvideMany operations on all router types.
Copy link
Member

@hacdias hacdias left a comment

Choose a reason for hiding this comment

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

The change looks reasonable to me. Better than dropping them.

@Jorropo Jorropo merged commit 6168e7d into master Jun 8, 2023
@Jorropo Jorropo deleted the manually-iterate-overkeys-in-many branch June 8, 2023 07:34
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