This commit is contained in:
Bethuel Mmbaga
2024-08-14 13:30:10 +03:00
committed by GitHub
parent 181dd93695
commit 6016d2f7ce
11 changed files with 28 additions and 24 deletions

View File

@ -960,9 +960,9 @@ func (e *Engine) connWorker(conn *peer.Conn, peerKey string) {
for {
// randomize starting time a bit
min := 500
max := 2000
duration := time.Duration(rand.Intn(max-min)+min) * time.Millisecond
minValue := 500
maxValue := 2000
duration := time.Duration(rand.Intn(maxValue-minValue)+minValue) * time.Millisecond
select {
case <-e.ctx.Done():
return