Skip to content

Commit

Permalink
Lower package update interval to 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
evanc577 committed Aug 30, 2023
1 parent 7a58222 commit 602f115
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 602f115

Please sign in to comment.