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: callback with error for invalid or non-peer multiaddr #232

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

alanshaw
Copy link
Member

  1. multiaddr(input) can throw, so put a try/catch around this
  2. Do not throw, but callback with error for multiaddr which is not a peer info multiaddr

License: MIT
Signed-off-by: Alan Shaw <alan@tableflip.io>
@ghost ghost assigned alanshaw Aug 12, 2018
@ghost ghost added the status/in-progress In progress label Aug 12, 2018
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

Looks good, 👍 for not throwing errors!

@jacobheun jacobheun merged commit c8a86db into master Aug 13, 2018
@ghost ghost removed the status/in-progress In progress label Aug 13, 2018
@jacobheun jacobheun deleted the fix/get-peer-info-cb-with-err branch August 13, 2018 13:11
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
Refactors benchmark to use exported factory function instead of
instantiating an instance of the class which is no longer exported.
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
## [7.0.4](libp2p/js-libp2p-mplex@v7.0.3...v7.0.4) (2022-11-23)

### Dependencies

* **dev:** bump it-map from 1.0.6 to 2.0.0 ([libp2p#225](libp2p/js-libp2p-mplex#225)) ([a153108](libp2p/js-libp2p-mplex@a153108))

### Trivial Changes

* update benchmark ([libp2p#232](libp2p/js-libp2p-mplex#232)) ([d73381e](libp2p/js-libp2p-mplex@d73381e))
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
* update .github/workflows/js-test-and-release.yml

* test: fix tests on node 18 (libp2p#234)

We need to specify the host name to connect. If we don't it defaults to `localhost` - it seems in node 17+ DNS resolution has changed to return IPv6 addresses by default which causes the connection to fail because the listener has only bound to an IPv4 address.

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Alex Potsides <alex@achingbrain.net>
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
libp2p streams are now explicit about the types of sync/sources they provide, showing that they are
`AsyncGenerator`s and not just `AsyncIterable`s.

Refs: achingbrain/it-stream-types#45

BREAKING CHANGE: the type of the source/sink properties have changed
maschad pushed a commit to maschad/js-libp2p that referenced this pull request Jun 21, 2023
## [6.0.0](libp2p/js-libp2p-websockets@v5.0.10...v6.0.0) (2023-04-18)

### ⚠ BREAKING CHANGES

* the type of the source/sink properties have changed

### Dependencies

* update stream types ([libp2p#232](libp2p/js-libp2p-websockets#232)) ([5a69d38](libp2p/js-libp2p-websockets@5a69d38))
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