mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 18:02:28 +00:00
fix import issue
This commit is contained in:
parent
d9224d5409
commit
9340ec9d98
@ -240,8 +240,7 @@ module.exports = Connection
|
||||
* @param {{ direction: any; timeline: any; multiplexer?: string | undefined; encryption?: string | undefined; }} stat
|
||||
*/
|
||||
function validateArgs (localAddr, localPeer, remotePeer, newStream, close, getStreams, stat) {
|
||||
// @ts-ignore
|
||||
if (localAddr && !multiaddr.isMultiaddr(localAddr)) {
|
||||
if (localAddr && !multiaddr.Multiaddr.isMultiaddr(localAddr)) {
|
||||
throw errCode(new Error('localAddr must be an instance of multiaddr'), 'ERR_INVALID_PARAMETERS')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user