packages/hyprspace: don't die if initial bootstrap fails

This commit is contained in:
Max Headroom 2022-09-26 23:05:35 +02:00
parent d9d599a598
commit 7164f05fac

View file

@ -152,7 +152,7 @@ func CreateNode(ctx context.Context, inputKey []byte, port int, handler network.
count := bootstrap(ctx, node, BootstrapPeers)
if count < 1 {
return node, dhtOut, errors.New("unable to bootstrap libp2p node")
fmt.Println("[!] Initial bootstrap failed")
}
go rebootstrap(ctx, node, BootstrapPeers)