-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation using a Set
looks good to me!
However, I feel that we should not add the events for dialing
, unless we have a concrete use case from users of this module.
ba56997
to
8e5f0c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left just a new note! It looks like we decreased some coverage, as well.
Can you add a test for the following scenario:
// stopped, so we should just bail out
if (!this._dials.has(idB58Str)) {
return callback()
}
@vasco-santos it seems like maybe we're missing an error handler somewhere in the transport stack: |
So, it seems it is failing on |
@vasco-santos I'll take a look, floodsub is using some pretty old deps. I'll get a PR together with any necessary changes. The error itself isn't a problem, but obviously we don't want bubbling unhandled exceptions. |
thanks @jacobheun |
@jacobheun already fixed the @dirkmc can you rebase the PR now? |
b831e4c
to
8ca6aeb
Compare
Thanks @dirkmc There are a few lines added that are not covered by the tests, for instance, https://codecov.io/gh/libp2p/js-libp2p-floodsub/src/8f1e36f8ad0488cf50efaa8aba981c8153cf54f9/src/base.js#L112 Can you have a look? |
Oh hmm that definitely should be covered, I'll take a look Also thanks @jacobheun for upgrading everything 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @dirkmc !
LGTM
I have to say I'm impressed with the tooling you guys have put in place, it caught some very subtle cases where after Jacob's upgrade some of the test cases I had written were no longer testing what they appeared, even though they were still passing. Kudos 👍 |
Fixes #62