Async worker

This commit is contained in:
4yn
2022-02-04 23:45:36 +08:00
parent 93240ef4af
commit 281e4b02b1
11 changed files with 442 additions and 27 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ fn main() {
.setup(move |app| {
let app_handle = app.handle();
let config_clone = Arc::clone(&config);
app.listen_global("heartbeat", move |e| {
app.listen_global("heartbeat", move |_| {
let config_handle = config_clone.lock().unwrap();
info!("Heartbeat received");
app_handle