File tree 1 file changed +2
-2
lines changed
packages/transport-webrtc/src/private-to-public
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { isIPv4 } from '@chainsafe/is-ip'
2
- import { InvalidParametersError , InvalidPeerIdError , TypedEventEmitter } from '@libp2p/interface'
2
+ import { InvalidParametersError , TypedEventEmitter } from '@libp2p/interface'
3
3
import { getThinWaistAddresses } from '@libp2p/utils/get-thin-waist-addresses'
4
4
import { multiaddr , fromStringTuples } from '@multiformats/multiaddr'
5
5
import { WebRTCDirect } from '@multiformats/multiaddr-matcher'
@@ -101,7 +101,7 @@ export class WebRTCDirectListener extends TypedEventEmitter<ListenerEvents> impl
101
101
102
102
// check that we own the mux server
103
103
if ( udpMuxServer != null && ! udpMuxServer . peerId . equals ( this . components . peerId ) ) {
104
- throw new InvalidPeerIdError ( `Another peer is already performing UDP mux on ${ host } :${ port } ` )
104
+ throw new InvalidParametersError ( `Another peer is already performing UDP mux on ${ host } :${ port } ` )
105
105
}
106
106
}
107
107
You can’t perform that action at this time.
0 commit comments