File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 59
59
"libp2p-crypto" : " ^0.17.1" ,
60
60
"libp2p-interfaces" : " ^0.1.5" ,
61
61
"mafmt" : " ^7.0.0" ,
62
- "merge-options" : " ^1 .0.1 " ,
62
+ "merge-options" : " ^2 .0.0 " ,
63
63
"moving-average" : " ^1.0.0" ,
64
64
"multiaddr" : " ^7.2.1" ,
65
65
"multistream-select" : " ^0.15.0" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class ConnectionManager {
37
37
this . _libp2p = libp2p
38
38
this . _registrar = libp2p . registrar
39
39
this . _peerId = libp2p . peerInfo . id . toString ( )
40
- this . _options = mergeOptions ( defaultOptions , options )
40
+ this . _options = mergeOptions . call ( { ignoreUndefined : true } , defaultOptions , options )
41
41
assert (
42
42
this . _options . maxConnections > this . _options . minConnections ,
43
43
'Connection Manager maxConnections must be greater than minConnections'
You can’t perform that action at this time.
0 commit comments