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: update getConnectionsMap and getConnection functions #5097

Closed
wants to merge 2 commits into from

Conversation

maschad
Copy link
Contributor

@maschad maschad commented Feb 2, 2023

Motivation
Following the discussion libp2p/js-libp2p#1567 (comment) this will reduce some of the complexities of utility functions.

Description
This along with a solution for libp2p/js-libp2p#1574 will help us to better inspect, debug and observe the libp2p object overall

@maschad maschad requested a review from a team as a code owner February 2, 2023 17:56
@maschad maschad changed the title fix: update getConnectionsMap and getConnection functions (#1567) fix: update getConnectionsMap and getConnection functions Feb 2, 2023
@maschad maschad marked this pull request as draft February 2, 2023 20:50
Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

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

I would prefer to not have additional runtime logic here for the benefit of making the types prettier.

Also we've had trouble in the past with string->peerId conversions causing poor performance:
libp2p/js-libp2p#680 (comment)

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