Refresh updates after 3s instead of 1s
This commit is contained in:
parent
4ce06bef00
commit
b50e941d1d
|
@ -298,7 +298,7 @@ func (p *Peer) applyRequestState(next requestState) bool {
|
||||||
if more {
|
if more {
|
||||||
p.needRequestUpdate = ""
|
p.needRequestUpdate = ""
|
||||||
if !current.Requests.IsEmpty() {
|
if !current.Requests.IsEmpty() {
|
||||||
p.updateRequestsTimer.Reset(time.Second)
|
p.updateRequestsTimer.Reset(3 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return more
|
return more
|
||||||
|
|
Loading…
Reference in New Issue