Closed
Description
Currently, you can define a transport or discovery module as an instance or a class.
Instead of a class, why not a function call here and here? This way, the provider has control over which instance to deliver to libp2p.
Use case: this allows me to solve peer-base/peer-base#1