mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-03-26 20:31:04 +00:00
Instead of making the `.dht` and `.pubsub` properties optional, use dummy implementations that throw exceptions if they are not configured. This way we don't have to null guard everywhere they are accessed.