feat(routing/http/client): DefaultProtocolFilter for IPIP-484 #689
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes
routing/http/client
initialize with implicit default protocol filter from IPIP-484 set tounknown
+transport-bitswap
, matching what we explicitly set in Kubo (ipfs/kubo#10534) and Rainbow (ipfs/rainbow#173).Rationale
boxo users can change or disable default filter via
WithProtocolFilter
option, but the default should be filter that is optimized for golden path, which currently means bitswap. Processing peers that we know only support unsupported protocols is wasting resources and we should skip them.Over time, we may add new protocols like http to boxo, and we will also adjust the default list accordingly.
TODO
routing/http/client
to useDefaultProtocolFilter
examples/routing/delegated-routing-client
to reflect implicit defaults