Skip to content

Commit e8172af

Browse files
authored
deps!: update @libp2p/interface-peer-discovery to 2.0.0 (libp2p#197)
Updates the interface and symbol return type
1 parent 9e4b9cd commit e8172af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"docs": "aegir docs"
136136
},
137137
"dependencies": {
138-
"@libp2p/interface-peer-discovery": "^1.0.5",
138+
"@libp2p/interface-peer-discovery": "^2.0.0",
139139
"@libp2p/interface-peer-info": "^1.0.8",
140140
"@libp2p/interfaces": "^3.3.1",
141141
"@libp2p/logger": "^2.0.5",

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { symbol } from '@libp2p/interface-peer-discovery'
1+
import { peerDiscovery } from '@libp2p/interface-peer-discovery'
22
import { CustomEvent, EventEmitter } from '@libp2p/interfaces/events'
33
import { logger } from '@libp2p/logger'
44
import multicastDNS from 'multicast-dns'
@@ -55,7 +55,7 @@ class MulticastDNS extends EventEmitter<PeerDiscoveryEvents> implements PeerDisc
5555
this._onMdnsResponse = this._onMdnsResponse.bind(this)
5656
}
5757

58-
readonly [symbol] = true
58+
readonly [peerDiscovery] = this
5959

6060
readonly [Symbol.toStringTag] = '@libp2p/mdns'
6161

0 commit comments

Comments
 (0)