packages/hyprspace: trigger discovery again on failed connection
This commit is contained in:
parent
d6426267cb
commit
a2b241332b
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ func UpRun(r *cmd.Root, c *cmd.Sub) {
|
||||||
stream, err = host.NewStream(ctx, peer, p2p.Protocol)
|
stream, err = host.NewStream(ctx, peer, p2p.Protocol)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("[!] Failed to dial peer: " + peer.Pretty())
|
fmt.Println("[!] Failed to dial peer: " + peer.Pretty())
|
||||||
|
go p2p.Discover(ctx, host, dht, peerTable)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
stream.SetWriteDeadline(time.Now().Add(25 * time.Second))
|
stream.SetWriteDeadline(time.Now().Add(25 * time.Second))
|
||||||
|
|
Loading…
Reference in a new issue