Skip to content

Commit

Permalink
fix: update interfaces (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored May 6, 2022
1 parent 224aae7 commit 580f1c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"release": "semantic-release"
},
"dependencies": {
"@libp2p/interfaces": "^1.3.31",
"@libp2p/interfaces": "^1.3.32",
"@libp2p/logger": "^1.1.2",
"@libp2p/peer-id": "^1.1.8",
"@multiformats/multiaddr": "^10.1.7",
Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import type { PeerDiscovery, PeerDiscoveryEvents } from '@libp2p/interfaces/peer
import { Components, Initializable } from '@libp2p/interfaces/components'
import type { Message } from '@libp2p/interfaces/pubsub'
import type { PeerInfo } from '@libp2p/interfaces/peer-info'
import { symbol } from '@libp2p/interfaces/peer-discovery'

const log = logger('libp2p:discovery:pubsub')
export const TOPIC = '_peer-discovery._p2p._pubsub'
Expand Down Expand Up @@ -61,6 +62,14 @@ export class PubSubPeerDiscovery extends EventEmitter<PeerDiscoveryEvents> imple
this._onMessage = this._onMessage.bind(this)
}

get [symbol] (): true {
return true
}

get [Symbol.toStringTag] () {
return '@libp2p/pubsub-peer-discovery'
}

init (components: Components) {
this.components = components
}
Expand Down

0 comments on commit 580f1c2

Please sign in to comment.