Refresh updates after 3s instead of 1s

This commit is contained in:
Matt Joiner 2021-10-18 21:52:31 +11:00
parent 4ce06bef00
commit b50e941d1d
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ func (p *Peer) applyRequestState(next requestState) bool {
if more {
p.needRequestUpdate = ""
if !current.Requests.IsEmpty() {
p.updateRequestsTimer.Reset(time.Second)
p.updateRequestsTimer.Reset(3 * time.Second)
}
}
return more