From f35cf9846fdf0e92975415abdf21c3bb92e017da Mon Sep 17 00:00:00 2001 From: steebchen Date: Tue, 3 Dec 2024 22:25:34 +0700 Subject: [PATCH] feat(cli): add update check interval configuration Set update_informer to check for updates every hour by configuring the interval duration, enhancing update management. --- cli/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index 30cabf9..8a762f0 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -22,7 +22,8 @@ async fn main() { let name = "cartridge-gg/slot"; let current = env!("CARGO_PKG_VERSION"); - let informer = update_informer::new(registry::GitHub, name, current); + let informer = update_informer::new(registry::GitHub, name, current) + .interval(std::time::Duration::from_secs(60 * 60)); match &cli.command.run().await { Ok(_) => {}