refactor: increase version check interval

This commit is contained in:
daimond113 2024-08-11 18:23:43 +02:00
parent 48f591a48a
commit c413d8aa22
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -37,7 +37,7 @@ fn get_repo() -> (String, String) {
) )
} }
const CHECK_INTERVAL: chrono::Duration = chrono::Duration::seconds(30); const CHECK_INTERVAL: chrono::Duration = chrono::Duration::hours(6);
pub fn check_for_updates(reqwest: &reqwest::blocking::Client) -> anyhow::Result<()> { pub fn check_for_updates(reqwest: &reqwest::blocking::Client) -> anyhow::Result<()> {
let (owner, repo) = get_repo(); let (owner, repo) = get_repo();