mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-12 21:44:33 +00:00
Do not setup libp2p discovery module if we fail to retrieve node addrs
This commit is contained in:
parent
ff829fc43e
commit
d18c6eca83
@ -202,14 +202,14 @@ export class Waku {
|
||||
}
|
||||
|
||||
if (bootstrap !== undefined) {
|
||||
// Note: this overrides any other peer discover
|
||||
libp2pOpts.modules = Object.assign(libp2pOpts.modules, {
|
||||
peerDiscovery: [Bootstrap],
|
||||
});
|
||||
|
||||
try {
|
||||
const list = await bootstrap();
|
||||
|
||||
// Note: this overrides any other peer discover
|
||||
libp2pOpts.modules = Object.assign(libp2pOpts.modules, {
|
||||
peerDiscovery: [Bootstrap],
|
||||
});
|
||||
|
||||
libp2pOpts.config.peerDiscovery = {
|
||||
[Bootstrap.tag]: {
|
||||
list,
|
||||
|
Loading…
x
Reference in New Issue
Block a user