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

feat: enable filtering in delegated routing client #651

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

2color
Copy link
Member

@2color 2color commented Oct 15, 2024

Description

  • deps: upgrade delegated routing client
  • feat: leverage filtering for delegated routing in libp2p constructor

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@2color 2color requested a review from a team as a code owner October 15, 2024 08:49
@2color 2color requested a review from SgtPooki October 18, 2024 07:53
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev'),
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', {
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss']
Copy link
Member

Choose a reason for hiding this comment

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

we probably want to include ws & http here as well?

Copy link
Member

Choose a reason for hiding this comment

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

I can see that would be useful in test environments but probably not by default?

@achingbrain achingbrain merged commit 23ebae1 into main Oct 23, 2024
18 checks passed
@achingbrain achingbrain deleted the enable-filtering branch October 23, 2024 14:10
@achingbrain achingbrain mentioned this pull request Oct 23, 2024
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