Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

fix: make findprovs return all responses#1041

Merged
alanshaw merged 3 commits intomasterfrom
fix/dht-findprovs
Jul 11, 2019
Merged

fix: make findprovs return all responses#1041
alanshaw merged 3 commits intomasterfrom
fix/dht-findprovs

Conversation

@jacobheun
Copy link
Copy Markdown
Contributor

@jacobheun jacobheun commented Jul 10, 2019

Find providers was not consistently returning all of the provider responses. This was causing flakey test failures for libp2p/js-libp2p-delegated-content-routing#9.

It will now properly return all response records for each result.

@alanshaw
Copy link
Copy Markdown
Contributor

Code change LGTM - can we get a test in interface-ipfs-core that tests for multiple provider results? 🙏🙏🙏

@jacobheun
Copy link
Copy Markdown
Contributor Author

Added the findProvs test over at ipfs-inactive/interface-js-ipfs-core#493. I also removed the skip here, as it wasnt running findProvs at all.

Copy link
Copy Markdown
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

Thanks @jacobheun 😃

@alanshaw alanshaw merged commit 63103bd into master Jul 11, 2019
@alanshaw alanshaw deleted the fix/dht-findprovs branch July 11, 2019 09:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants