Skip to content

Commit

Permalink
Set polling frequency to 5 mins by default
Browse files Browse the repository at this point in the history
  • Loading branch information
parksb committed Feb 5, 2024
1 parent 5968906 commit d212e00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/models/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ fn proxy(db: &Connection) -> Option<String> {
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 {
Expand Down

0 comments on commit d212e00

Please sign in to comment.