From fd55f2cbfa082c599c7b9e0b26b8672a2027c0e2 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Wed, 29 Jun 2022 20:32:45 +0800 Subject: [PATCH] chore: reduce query aria2 status interval --- internal/aria2/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/aria2/monitor.go b/internal/aria2/monitor.go index be2cdbb1..82a56533 100644 --- a/internal/aria2/monitor.go +++ b/internal/aria2/monitor.go @@ -49,7 +49,7 @@ outer: if ok { break outer } - case <-time.After(time.Second * 5): + case <-time.After(time.Second * 2): ok, err = m.Update() if ok { break outer