fix: make dialer configurable (#521)

docs: update configuration and api docs
This commit is contained in:
Jacob Heun
2019-12-16 16:49:29 +01:00
parent 5d7ee50e76
commit 4ca481b869
6 changed files with 62 additions and 7 deletions

View File

@ -107,7 +107,10 @@ class Libp2p extends EventEmitter {
this.dialer = new Dialer({
transportManager: this.transportManager,
peerStore: this.peerStore
peerStore: this.peerStore,
concurrency: this._options.dialer.maxParallelDials,
perPeerLimit: this._options.dialer.maxDialsPerPeer,
timeout: this._options.dialer.dialTimeout
})
this._modules.transport.forEach((Transport) => {