Skip to content

Commit

Permalink
fix: bundles arg | rm test logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Nov 21, 2024
1 parent d69c8df commit bcaf88d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
9 changes: 3 additions & 6 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<UniverseAppState>().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;
}
Expand Down

0 comments on commit bcaf88d

Please sign in to comment.