From 03e1772d4b136260908db4e2fc53173e272649ff Mon Sep 17 00:00:00 2001 From: dozyio Date: Thu, 19 Dec 2024 19:46:37 +0000 Subject: [PATCH] add directConnectTicks to go-peer --- go-peer/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go-peer/main.go b/go-peer/main.go index 5394f16..16df7af 100644 --- a/go-peer/main.go +++ b/go-peer/main.go @@ -206,6 +206,7 @@ func main() { if len(directPeers) > 0 { dp := peerStrSliceToAddrInfoSlice(directPeers) gossipSubOpts = append(gossipSubOpts, pubsub.WithDirectPeers(dp)) + pubsub.WithDirectConnectTicks(60) // attempt to reconnect to direct peers every 60 ticks (seconds) } pubsub.WithFloodPublish(true)