fix types inside getHubs()

This commit is contained in:
Andre Staltz 2024-01-31 14:33:53 +02:00
parent 554a36e466
commit 6dec9c2529
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 0 additions and 2 deletions

View File

@ -88,9 +88,7 @@ function initHubClient(peer, config) {
const source = peer.net.peers()
source(null, (err, peers) => {
if (err === true || !peers) return cb(null, [])
// prettier-ignore
if (err) return cb(new Error('Failed to get hubs', { cause: err }))
// @ts-ignore
const infoMap = new Map(peers)
const multiaddrs = peer.set.values(HUBS_SUBDOMAIN)
const hubs = []