Skip to content

Commit

Permalink
default runtime dir use temp_dir
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Llerena <[email protected]>
  • Loading branch information
doubleailes committed Aug 29, 2024
1 parent 6c8371d commit 7fe3bf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/spfs/src/runtime/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ pub struct Config {

impl Default for Config {
fn default() -> Self {
Self::from_root(Path::new(Self::RUNTIME_DIR))
// Default RUNTIME_DIR
Self::from_root(temp_dir().join("spfs-runtime"))
}
}

impl Config {
const RUNTIME_DIR: &'static str = "/tmp/spfs-runtime";
const UPPER_DIR: &'static str = "upper";
const LOWER_DIR: &'static str = "lower";
const WORK_DIR: &'static str = "work";
Expand Down

0 comments on commit 7fe3bf3

Please sign in to comment.