Skip to content

Commit

Permalink
add directConnectTicks to go-peer
Browse files Browse the repository at this point in the history
  • Loading branch information
dozyio committed Dec 19, 2024
1 parent dbf316e commit 03e1772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go-peer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03e1772

Please sign in to comment.