From 602f1159fc17d85ea5b3b9a76a4db898f600b7f4 Mon Sep 17 00:00:00 2001 From: Evan Chang Date: Tue, 29 Aug 2023 22:33:20 -0400 Subject: [PATCH] Lower package update interval to 1 hour --- src/package_update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/package_update.rs b/src/package_update.rs index f37838f..73df3f6 100644 --- a/src/package_update.rs +++ b/src/package_update.rs @@ -34,8 +34,8 @@ pub async fn update_packages() -> Result<(), UpdateError> { // Spawn a task that updates packages automatically tokio::spawn(async move { - // 1 day - let mut interval = interval(Duration::from_secs(24 * 60 * 60)); + // 1 hour + let mut interval = interval(Duration::from_secs(60 * 60)); interval.set_missed_tick_behavior(MissedTickBehavior::Delay); loop {