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)