diff --git a/.github/workflows/beta_release.yml b/.github/workflows/beta_release.yml index af574b0b8..1d85adadc 100644 --- a/.github/workflows/beta_release.yml +++ b/.github/workflows/beta_release.yml @@ -32,7 +32,7 @@ jobs: - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04. args: '' - platform: 'windows-2019' - args: '--bundles updater,msi' + args: '--bundles updater, msi' - platform: 'macos-latest' args: '--target universal-apple-darwin' diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 162b5be29..583927741 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -450,14 +450,11 @@ async fn setup_inner( let mvhandle = app.clone(); tauri::async_runtime::spawn(async move { loop { - // TODO: REMOVE THIS INFO IT'S JUST FOR TESTING - info!(target: LOG_TARGET, "Checking for MINER METRICS"); let app_state = mvhandle.state::().clone(); if let Ok(ret) = commands::get_miner_metrics(app_state, mvhandle.clone()).await { - if mvhandle.emit("miner_metrics", &ret).is_ok() { - // TODO: REMOVE THIS INFO IT'S JUST FOR TESTING - info!(target: LOG_TARGET, "METRICS SENT"); - } + mvhandle.emit("miner_metrics", &ret).unwrap_or_else( + |e| error!(target: LOG_TARGET, "Could not emit miner_metrics event: {:?}", e), + ); }; tokio::time::sleep(Duration::from_secs(1)).await; }