Skip to content

Commit

Permalink
feat(cli): add update check interval configuration
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 committed Dec 3, 2024
1 parent f72a523 commit f35cf98
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 f35cf98

Please sign in to comment.