From: Matt Joiner Date: Mon, 18 Oct 2021 10:52:31 +0000 (+1100) Subject: Refresh updates after 3s instead of 1s X-Git-Tag: v1.34.0^2~23 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b50e941d1d8ea1ce51c24f0e1a4684fe4dab770d;p=btrtrc.git Refresh updates after 3s instead of 1s --- diff --git a/requesting.go b/requesting.go index 820cafaa..97e46e9c 100644 --- a/requesting.go +++ b/requesting.go @@ -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