Skip to content

Commit

Permalink
feat(cli): add update check interval configuration (#148)
Browse files Browse the repository at this point in the history
Set update_informer to check for updates every hour by
configuring the interval duration, enhancing update management.
  • Loading branch information
steebchen authored Dec 3, 2024
1 parent b6ee123 commit 0030204
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(_) => {}
Expand Down

0 comments on commit 0030204

Please sign in to comment.