Skip to content

Commit

Permalink
Remove duplicated init tauri command
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrrnn committed Aug 5, 2024
1 parent 0a88b77 commit f1b9bca
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,6 @@ async fn setup_application<'r>(
Ok(())
}

#[tauri::command]
async fn init<'r>(
state: tauri::State<'r, UniverseAppState>,
app: tauri::AppHandle,
) -> Result<(), String> {
state
.node_manager
.ensure_started(
state.shutdown.to_signal(),
app.path_resolver().app_local_data_dir().unwrap(),
)
.await
.map_err(|e| e.to_string())
}

#[tauri::command]
async fn start_mining<'r>(
_window: tauri::Window,
Expand Down

0 comments on commit f1b9bca

Please sign in to comment.