Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrrnn committed Oct 9, 2024
1 parent 4d29b43 commit 2ea10e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src-tauri/src/wallet_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ impl ProcessAdapter for WalletAdapter {
"--spend-key".to_string(),
self.spend_key.clone(),
"--non-interactive-mode".to_string(),
format!("--log-config={}", config_dir.to_str().expect("Could not get config dir")).to_string(),
format!(
"--log-config={}",
config_dir.to_str().expect("Could not get config dir")
)
.to_string(),
"--grpc-enabled".to_string(),
"--grpc-address".to_string(),
"/ip4/127.0.0.1/tcp/18141".to_string(),
Expand Down
6 changes: 5 additions & 1 deletion src-tauri/src/xmrig_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ impl ProcessAdapter for XmrigAdapter {
let mut shutdown_signal = xmrig_shutdown.to_signal();
let mut args = self.node_connection.generate_args();
let xmrig_log_file = log_dir.join("xmrig").join("xmrig.log");
std::fs::create_dir_all(xmrig_log_file.parent().expect("Could not get xmrig root log dir"))?;
std::fs::create_dir_all(
xmrig_log_file
.parent()
.expect("Could not get xmrig root log dir"),
)?;

let xmrig_log_file_parent = xmrig_log_file
.parent()
Expand Down

0 comments on commit 2ea10e1

Please sign in to comment.