From b50e941d1d8ea1ce51c24f0e1a4684fe4dab770d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Mon, 18 Oct 2021 21:52:31 +1100 Subject: [PATCH] Refresh updates after 3s instead of 1s --- requesting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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