Skip to content

Commit

Permalink
increase timeout in gossip connections
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Oct 29, 2024
1 parent ef1479e commit 3537fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (pd *PeerDiscovery) gossipPeers(ctx context.Context) {
peers := pd.GetPeers()
pd.logger.Debug().Msgf("current peers: %v", peers)

ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
var wg sync.WaitGroup
sem := make(chan struct{}, MaxGossipConcurrency) // Limit concurrency
Expand Down

0 comments on commit 3537fb6

Please sign in to comment.