Skip to content

Commit 95909c3

Browse files
committedMar 18, 2025
chore: update error name
1 parent a71c7c3 commit 95909c3

File tree

1 file changed

+2
-2
lines changed
  • packages/transport-webrtc/src/private-to-public

1 file changed

+2
-2
lines changed
 

‎packages/transport-webrtc/src/private-to-public/listener.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isIPv4 } from '@chainsafe/is-ip'
2-
import { InvalidParametersError, InvalidPeerIdError, TypedEventEmitter } from '@libp2p/interface'
2+
import { InvalidParametersError, TypedEventEmitter } from '@libp2p/interface'
33
import { getThinWaistAddresses } from '@libp2p/utils/get-thin-waist-addresses'
44
import { multiaddr, fromStringTuples } from '@multiformats/multiaddr'
55
import { WebRTCDirect } from '@multiformats/multiaddr-matcher'
@@ -101,7 +101,7 @@ export class WebRTCDirectListener extends TypedEventEmitter<ListenerEvents> impl
101101

102102
// check that we own the mux server
103103
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}`)
105105
}
106106
}
107107

0 commit comments

Comments
 (0)