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

Commit

Permalink
deps!: update @libp2p/interface-peer-discovery to 2.0.0 (#176)
Browse files Browse the repository at this point in the history
Updates the interface and symbol return type
  • Loading branch information
achingbrain authored May 4, 2023
1 parent d73f310 commit 1954e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
"docs": "aegir docs"
},
"dependencies": {
"@libp2p/interface-peer-discovery": "^1.0.1",
"@libp2p/interface-peer-discovery": "^2.0.0",
"@libp2p/interface-peer-info": "^1.0.7",
"@libp2p/interface-peer-store": "^2.0.0",
"@libp2p/interfaces": "^3.0.3",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { symbol } from '@libp2p/interface-peer-discovery'
import { peerDiscovery } from '@libp2p/interface-peer-discovery'
import { EventEmitter } from '@libp2p/interfaces/events'
import { logger } from '@libp2p/logger'
import { peerIdFromString } from '@libp2p/peer-id'
Expand Down Expand Up @@ -95,7 +95,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
this._init = options
}

readonly [symbol] = true
readonly [peerDiscovery] = this

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

Expand Down

0 comments on commit 1954e75

Please sign in to comment.