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

Commit

Permalink
fix: update interfaces (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored May 6, 2022
1 parent 5ed7cfa commit 31de4e1
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 @@ -133,7 +133,7 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interfaces": "^1.3.31",
"@libp2p/interfaces": "^1.3.32",
"@libp2p/logger": "^1.1.3",
"@libp2p/peer-id": "^1.1.9",
"@multiformats/mafmt": "^11.0.2",
Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { logger } from '@libp2p/logger'
import type { PeerDiscovery, PeerDiscoveryEvents } from '@libp2p/interfaces/peer-discovery'
import type { PeerInfo } from '@libp2p/interfaces/peer-info'
import { peerIdFromString } from '@libp2p/peer-id'
import { symbol } from '@libp2p/interfaces/peer-discovery'

const log = logger('libp2p:bootstrap')

Expand Down Expand Up @@ -63,6 +64,14 @@ export class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements Peer
}
}

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

get [Symbol.toStringTag] () {
return '@libp2p/bootstrap'
}

isStarted () {
return Boolean(this.timer)
}
Expand Down

0 comments on commit 31de4e1

Please sign in to comment.