From d9d599a5981c32d50b8afae8ef5665561c82aef6 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 26 Sep 2022 22:54:40 +0200 Subject: [PATCH] modules/hyprspace: force reconnection --- packages/networking/hyprspace/p2p/node.go | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/networking/hyprspace/p2p/node.go b/packages/networking/hyprspace/p2p/node.go index 12728de..69a3fcd 100644 --- a/packages/networking/hyprspace/p2p/node.go +++ b/packages/networking/hyprspace/p2p/node.go @@ -167,6 +167,7 @@ func bootstrap(ctx context.Context, node host.Host, bootstrapPeers map[peer.ID]* for _, peerInfo := range bootstrapPeers { go func(peerInfo *peer.AddrInfo) { defer wg.Done() + node.Network().ClosePeer(peerInfo.ID) err := node.Connect(ctx, *peerInfo) if err == nil { lock.Lock()