Skip to content

Commit 6851fbb

Browse files
Switch from sync every minute to every 5 minutes.
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.
1 parent f38600c commit 6851fbb

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This is the Desktop Sync client for [bewCloud](https://github.com/bewcloud/bewcl
66

77
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`.
88

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

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

1313
## Install
1414

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bewcloud-sync",
33
"private": true,
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bewcloud-sync"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
description = "Desktop Sync Client for bewCloud"
55
authors = ["Bruno Bernardino"]
66
edition = "2021"

src-tauri/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn run_sync(app: AppHandle) {
6969
return;
7070
}
7171

72-
let one_minute = time::Duration::from_secs(60);
72+
let five_minutes = time::Duration::from_secs(300);
7373

7474
tauri::async_runtime::spawn(async move {
7575
loop {
@@ -90,7 +90,7 @@ fn run_sync(app: AppHandle) {
9090
))
9191
.unwrap();
9292

93-
thread::sleep(one_minute);
93+
thread::sleep(five_minutes);
9494
}
9595
});
9696
}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"package": {
99
"productName": "bewCloud Desktop Sync",
10-
"version": "0.0.2"
10+
"version": "0.0.3"
1111
},
1212
"tauri": {
1313
"allowlist": {

0 commit comments

Comments
 (0)