Skip to content

Commit

Permalink
Switch from sync every minute to every 5 minutes.
Browse files Browse the repository at this point in the history
It's already incredibly light on resource usage, but there's no need to be greedy since you can force sync quite easily if you need to.

Also link the mobile client/app in the README.
  • Loading branch information
BrunoBernardino committed Apr 12, 2024
1 parent f38600c commit 6851fbb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is the Desktop Sync client for [bewCloud](https://github.com/bewcloud/bewcl

Usernames, passwords, and sync is all handled by `rclone`. The connection to a bewCloud instance happens via HTTP and a remote via WebDav is created in `rclone`.

The app runs `rclone bisync` every minute, or when it's forced to do so.
The app runs `rclone bisync` every five minutes, or when it's forced to do so.

If you're looking for the mobile app, it's not built yet.
If you're looking for the mobile app, it's at [`bewcloud-mobile`](https://github.com/bewcloud/bewcloud-mobile).

## Install

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bewcloud-sync",
"private": true,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bewcloud-sync"
version = "0.0.2"
version = "0.0.3"
description = "Desktop Sync Client for bewCloud"
authors = ["Bruno Bernardino"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn run_sync(app: AppHandle) {
return;
}

let one_minute = time::Duration::from_secs(60);
let five_minutes = time::Duration::from_secs(300);

tauri::async_runtime::spawn(async move {
loop {
Expand All @@ -90,7 +90,7 @@ fn run_sync(app: AppHandle) {
))
.unwrap();

thread::sleep(one_minute);
thread::sleep(five_minutes);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "bewCloud Desktop Sync",
"version": "0.0.2"
"version": "0.0.3"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 6851fbb

Please sign in to comment.