Skip to content

Commit

Permalink
fix: mkdirp lassie temp_dir (#257)
Browse files Browse the repository at this point in the history
* fix: mkdirp lassie `temp_dir`

* `temp_dir` -> `lassie_temp_dir`
  • Loading branch information
juliangruber authored Jun 21, 2023
1 parent c318eda commit 89dd3d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daemon/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mod args;
mod state;
mod station_reporter;

use std::fs;
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::Arc;
Expand Down Expand Up @@ -40,9 +41,11 @@ async fn run(config: CliArgs) -> Result<()> {

let state_file = PathBuf::from(config.state_root).join("state.json");
log::debug!("Using state file: {}", state_file.display());
let lassie_temp_dir = PathBuf::from(config.cache_root).join("lassie");
fs::create_dir_all(&lassie_temp_dir)?;

let lassie_config = lassie::DaemonConfig {
temp_dir: Some(PathBuf::from(config.cache_root).join("lassie")),
temp_dir: Some(lassie_temp_dir),
port: 0,
};
let lassie_daemon = Arc::new(
Expand Down

0 comments on commit 89dd3d7

Please sign in to comment.