Skip to content

Commit 44e5454

Browse files
committed
fix: Spawning add user task
1 parent 79adf03 commit 44e5454

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
lines changed

components/ui/changelog/ChangelogData.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
export const changelogData = [
2+
{
3+
version: "0.3.1",
4+
date: "2025-10-01",
5+
type: "feature",
6+
changes: [
7+
"User uuid register spawn to not block UI",
8+
"General bugfixes",
9+
"Security improvements",
10+
],
11+
},
212
{
313
version: "0.3.0",
414
date: "2025-09-01",

src-tauri/src/main.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,14 @@ async fn generate_ai_topics(body: String) -> Result<String, String> {
135135

136136
#[tokio::main]
137137
async fn main() {
138-
// Add RustySEO uuid to DB
139-
match users::add_user().await {
140-
Ok(_) => println!("User added successfully"),
141-
Err(err) => eprintln!("Error adding user: {}", err),
142-
};
138+
// Add RustySEO uuid to DB on a seaparate async thread to no block UI
139+
140+
tokio::spawn(async {
141+
match users::add_user().await {
142+
Ok(_) => println!("User added successfully"),
143+
Err(err) => eprintln!("Error adding user: {}", err),
144+
};
145+
});
143146

144147
// clear the custom_search DB entry
145148
match db::clear_custom_search() {

src-tauri/src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use serde::Serialize;
44
use std::error::Error;
55

66
pub fn local_version() -> String {
7-
let version = "0.3.0".to_string();
7+
let version = "0.3.1".to_string();
88
version
99
}
1010

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"productName": "RustySEO",
4444
"mainBinaryName": "RustySEO",
45-
"version": "0.3.0",
45+
"version": "0.3.1",
4646
"identifier": "rustyseo.com",
4747
"plugins": {},
4848
"app": {
@@ -51,7 +51,7 @@
5151
{
5252
"fullscreen": false,
5353
"resizable": true,
54-
"title": "RustySEO - 0.3.0",
54+
"title": "RustySEO - 0.3.1",
5555
"minWidth": 1600,
5656
"minHeight": 1000,
5757
"width": 1500,

0 commit comments

Comments
 (0)