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

Fixes ipfs.swarm.peers call when using js-ipfs-api #413

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Mar 5, 2018

Currently the return type for ipfs.swarm.peers is different depending on whether we're talking directly to a js-ipfs or js-ipfs-api (issue opened here).

This PR updates the proxy to take this into account so that it doesn't error when passed a PeerId where it is expecting a PeerInfo (ipfs-inactive/ipfs-postmsg-proxy@eb0aa43).

@alanshaw alanshaw requested a review from lidel March 6, 2018 09:41
@lidel lidel merged commit c97f484 into ipfs:master Mar 6, 2018
@alanshaw alanshaw deleted the fix/ipfs-swarm-peers branch March 6, 2018 10:32
@daviddias
Copy link
Member

It would be great to actually fix the issue ipfs/js-ipfs#1248

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