Skip to content

Commit 5c516b8

Browse files
committed
discv4: decrease retry timeout
1 parent 2aeec75 commit 5c516b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

discv4/crawler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (c *Crawler) crawlDiscV4(ctx context.Context, pi PeerInfo) DiscV4Result {
141141
errorBits.Add(1 << count)
142142

143143
if errors.Is(err, discvx.ErrTimeout) {
144-
sleepDur := time.Second * time.Duration(5*(retry+1))
144+
sleepDur := time.Second * time.Duration(3*(retry+1))
145145
select {
146146
case <-ctx.Done():
147147
return ctx.Err()

0 commit comments

Comments
 (0)