diff --git a/package.json b/package.json index 424dd3e..5493976 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index ce35cd6..e283223 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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' @@ -95,7 +95,7 @@ class Bootstrap extends EventEmitter implements PeerDiscove this._init = options } - readonly [symbol] = true + readonly [peerDiscovery] = this readonly [Symbol.toStringTag] = '@libp2p/bootstrap'