chore: add configuration docs for auto relay and hop service

This commit is contained in:
Vasco Santos
2020-09-23 16:47:03 +02:00
committed by Vasco Santos
parent 5c72424e57
commit 11a46ea71e
2 changed files with 33 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class AutoRelay {
try {
const cid = await namespaceToCid(RELAY_RENDEZVOUS_NS)
for await (const provider of this._libp2p.contentRouting.findProviders(cid)) {
if (!provider || !provider.multiaddrs.length) {
if (!provider.multiaddrs.length) {
continue
}
const peerId = provider.id