mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-30 09:21:35 +00:00
chore: apply suggestions from code review
Co-authored-by: Jacob Heun <jacobheun@gmail.com>
This commit is contained in:
committed by
Vasco Santos
parent
11a46ea71e
commit
ee23fb9508
@ -68,12 +68,12 @@ class Relay {
|
||||
await this._libp2p.contentRouting.provide(cid)
|
||||
} catch (err) {
|
||||
if (err.code === 'NO_ROUTERS_AVAILABLE') {
|
||||
log('there are no routers configured to advertise hop relay service')
|
||||
log.error('a content router, such as a DHT, must be provided in order to advertise the relay service', err)
|
||||
// Stop the advertise
|
||||
this.stop()
|
||||
} else {
|
||||
log.error(err)
|
||||
}
|
||||
// Stop the advertise
|
||||
this.stop()
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ const DefaultConfig = {
|
||||
enabled: true,
|
||||
advertise: {
|
||||
bootDelay: RelayConstants.ADVERTISE_BOOT_DELAY,
|
||||
enabled: true,
|
||||
enabled: false,
|
||||
ttl: RelayConstants.ADVERTISE_TTL
|
||||
},
|
||||
hop: {
|
||||
|
Reference in New Issue
Block a user