Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 1954e75

Browse files
authored
deps!: update @libp2p/interface-peer-discovery to 2.0.0 (#176)
Updates the interface and symbol return type
1 parent d73f310 commit 1954e75

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
@@ -139,7 +139,7 @@
139139
"docs": "aegir docs"
140140
},
141141
"dependencies": {
142-
"@libp2p/interface-peer-discovery": "^1.0.1",
142+
"@libp2p/interface-peer-discovery": "^2.0.0",
143143
"@libp2p/interface-peer-info": "^1.0.7",
144144
"@libp2p/interface-peer-store": "^2.0.0",
145145
"@libp2p/interfaces": "^3.0.3",

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 { EventEmitter } from '@libp2p/interfaces/events'
33
import { logger } from '@libp2p/logger'
44
import { peerIdFromString } from '@libp2p/peer-id'
@@ -95,7 +95,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
9595
this._init = options
9696
}
9797

98-
readonly [symbol] = true
98+
readonly [peerDiscovery] = this
9999

100100
readonly [Symbol.toStringTag] = '@libp2p/bootstrap'
101101

0 commit comments

Comments
 (0)