mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-25 06:12:29 +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
|
* @param {{ direction: any; timeline: any; multiplexer?: string | undefined; encryption?: string | undefined; }} stat
|
||||||
*/
|
*/
|
||||||
function validateArgs (localAddr, localPeer, remotePeer, newStream, close, getStreams, stat) {
|
function validateArgs (localAddr, localPeer, remotePeer, newStream, close, getStreams, stat) {
|
||||||
// @ts-ignore
|
if (localAddr && !multiaddr.Multiaddr.isMultiaddr(localAddr)) {
|
||||||
if (localAddr && !multiaddr.isMultiaddr(localAddr)) {
|
|
||||||
throw errCode(new Error('localAddr must be an instance of multiaddr'), 'ERR_INVALID_PARAMETERS')
|
throw errCode(new Error('localAddr must be an instance of multiaddr'), 'ERR_INVALID_PARAMETERS')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user