mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
radicle-tauri/startup: Remove unnecessary clone
This commit is contained in:
@@ -46,14 +46,13 @@ pub(crate) fn startup(app: AppHandle) -> Result<Config, Error> {
|
||||
let node_handle = app.app_handle().clone();
|
||||
|
||||
let node = Node::new(profile.socket());
|
||||
let node_status = node.clone();
|
||||
|
||||
app.manage(inbox_service);
|
||||
app.manage(patch_service);
|
||||
|
||||
tauri::async_runtime::spawn(async move {
|
||||
loop {
|
||||
let _ = node_handle.emit("node_running", node_status.is_running());
|
||||
let _ = node_handle.emit("node_running", node.is_running());
|
||||
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user