-
Notifications
You must be signed in to change notification settings - Fork 37
TransportManager Refactoring to fix #300 #302
base: master
Are you sure you want to change the base?
Conversation
I would suggest using a return new Map([...this.transports].map(([k, v]) => [k, v.transport])) |
I will change it to a map, and i will try to make test pass as well :) |
first part of fixing issue #300
second part of fixing issue #300
third part of fixing issue #300
@nikor tests seem to be okay. The commitlint is the main thing that's failing. (Code coverage is also "failing", but it's a nominal drop in percentage). When committing dont capitalize the first letter of the commit message. Since this is going to be a breaking change, I think we should take advantage of the change to naming transport related things. Right now we have things like Use Thanks for submitting a PR for this! |
@jacobheun Thank you for explaining why commitlint failed. I will stick to lowercase in the future :) |
the comments related to the changes can be seen here: #302 (comment) #302 (comment)
Okay, i think the api changes is done. |
@jacobheun with the refactor, these need to be remade or closed. I'll let you do the review |
Encapsulates transports in TransportManager and moves the listeners outside the transport object.
One of the test in js-libp2p fails with this pull request. There is a fix for that test on this branch: https://github.com/nikor/js-libp2p/tree/js-libp2p-switch_300