Skip to content

Commit 3537fb6

Browse files
committed
increase timeout in gossip connections
1 parent ef1479e commit 3537fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (pd *PeerDiscovery) gossipPeers(ctx context.Context) {
145145
peers := pd.GetPeers()
146146
pd.logger.Debug().Msgf("current peers: %v", peers)
147147

148-
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
148+
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
149149
defer cancel()
150150
var wg sync.WaitGroup
151151
sem := make(chan struct{}, MaxGossipConcurrency) // Limit concurrency

0 commit comments

Comments
 (0)