Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

chore: discovery should not use once #45

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Apr 17, 2020

After checking failures on peer-discovery tests for libp2p/js-libp2p-pubsub-peer-discovery#5 I realized that emittery .once() returns a promise and does not support a listener callback, like in node.

As a consequence of this inconsistency, we should probably use .on() since we are already removing all the listeners on afterEach

@vasco-santos vasco-santos requested a review from jacobheun April 17, 2020 08:07
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.

LGTM

@jacobheun jacobheun merged commit d64a7bf into v0.3.x Apr 17, 2020
@jacobheun jacobheun deleted the chore/discovery-should-not-use-once branch April 17, 2020 10:24
jacobheun pushed a commit that referenced this pull request Apr 21, 2020
jacobheun pushed a commit that referenced this pull request Jun 5, 2020
jacobheun pushed a commit that referenced this pull request Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants