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: demand pubsub class instead of pubsub instance #922

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

achingbrain
Copy link
Member

Changes the Libp2pModules.pubsub property to be a class that maybe
extends PubsubBaseProtocol instead of an instance of that class.

The .dht property could use the same treatment but that can be
done in a follow up as the current object type doesn't cause an error.

Changes the `Libp2pModules.pubsub` property to be a class that maybe
extends `PubsubBaseProtocol` instead of an instance of that class.

The `.dht` property could use the same treatment but that can be
done in a follow up as the current `object` type doesn't cause an error.
@achingbrain achingbrain changed the title fix: demand pubsub subclass instead of pubsub instance fix: demand pubsub class instead of pubsub instance Apr 21, 2021
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

@vasco-santos
Copy link
Member

The DHT case needs to be better thought as we want to not have the DHT as dependency/devDependency in libp2p. We will defer this for #576

@vasco-santos vasco-santos merged commit 086b0ec into master Apr 21, 2021
@vasco-santos vasco-santos deleted the fix/demand-pubsub-class-not-pubsub-instance branch April 21, 2021 12:55
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