diff --git a/README.md b/README.md index 172e3d6..600d16c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Collie is a minimal RSS feed reader application. With Collie, you can: - subscribe to multiple RSS/Atom feeds to organize your own news feed. -- receive a real-time notification when a new item is added to the subscribed feed. (By default, it is checked every two minutes.) +- receive a real-time notification when a new item is added to the subscribed feed. (By default, it is checked every 5 minutes.) - and save the items to read again or later. All you need is a local machine and the Internet. No virtual machine, no cloud infrastructures, no always-on database, and no account registration with privacy information required. diff --git a/src-tauri/src/models/database.rs b/src-tauri/src/models/database.rs index e370b89..a1f1d5d 100644 --- a/src-tauri/src/models/database.rs +++ b/src-tauri/src/models/database.rs @@ -149,7 +149,7 @@ pub fn migrate(db: &Connection) -> Result<()> { )?; let _ = insert_settings(db, "db_scheme_version", "1"); - let _ = insert_settings(db, "polling_frequency", "120"); + let _ = insert_settings(db, "polling_frequency", "300"); let _ = insert_settings(db, "notification", "1"); let _ = insert_settings(db, "theme", "system"); let _ = insert_settings(db, "items_order", "ReceivedDateDesc"); diff --git a/src-tauri/src/worker.rs b/src-tauri/src/worker.rs index 85aa69d..69b895b 100644 --- a/src-tauri/src/worker.rs +++ b/src-tauri/src/worker.rs @@ -43,9 +43,9 @@ fn proxy(db: &Connection) -> Option { fn polling_frequency(db: &Connection) -> u64 { settings::read(db, &SettingKey::PollingFrequency) .map(|x| x.value) - .unwrap_or("120".to_string()) + .unwrap_or("300".to_string()) .parse() - .unwrap_or(120) + .unwrap_or(300) } fn notification(db: &Connection) -> bool {