Skip to content

Commit

Permalink
increase jitter to +-200ms
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jan 27, 2025
1 parent 1c5cbe4 commit de7c890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spv/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,9 @@ func nextBackoff(d time.Duration) time.Duration {
return d
}

// backoffJitter returns a random +-50ms of jitter to be added to every backoff.
// backoffJitter returns a random +-200ms of jitter to be added to every backoff.
func backoffJitter() time.Duration {
return -50*time.Millisecond + rand.Duration(100*time.Millisecond)
return -200*time.Millisecond + rand.Duration(400*time.Millisecond)
}

func (s *Syncer) backoff(raddr string) backoff {
Expand Down

0 comments on commit de7c890

Please sign in to comment.