Repository: kyu08/fzf-make (language: rust)

Issue:
bug(update_informer): check new version interval should be 24 hours 
https://github.com/kyu08/fzf-make/blob/912bf706ba43a1c2936b9d6654877fcb55f48db7/src/usecase/tui/app.rs#L253

Now, far-make checks new version every launch accidentally.


Discussion / hints:

Fix patch:
diff --git a/src/usecase/tui/app.rs b/src/usecase/tui/app.rs
index d5c791c..1a322e1 100644
--- a/src/usecase/tui/app.rs
+++ b/src/usecase/tui/app.rs
@@ -250,8 +250,10 @@ fn shutdown_terminal(terminal: &mut Terminal<CrosstermBackend<Stderr>>) -> Resul
 const PKG_NAME: &str = "kyu08/fzf-make";
 async fn get_latest_version(share_clone: Arc<Mutex<HashMap<String, String>>>) {
     let current_version = env!("CARGO_PKG_VERSION").to_string();
-    let informer = update_informer::new(registry::GitHub, PKG_NAME, current_version).interval(Duration::ZERO); // check version once a day
-                                                                                                               // .interval(Duration::from_secs(60 * 60 * 24)); // check version once a day
+    // check version once a day
+    let informer =
+        update_informer::new(registry::GitHub, PKG_NAME, current_version).interval(Duration::from_secs(60 * 60 * 24));
+
     let version_result = task::spawn_blocking(|| informer.check_version().map_err(|e| e.to_string()))
         .await
         .unwrap();


Test patch: