Skip to content

Commit 596e5b3

Browse files
committed
default runtime dir use temp_dir
Signed-off-by: Philippe Llerena <[email protected]>
1 parent 8151a88 commit 596e5b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/spfs/src/runtime/storage.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ pub struct Config {
408408

409409
impl Default for Config {
410410
fn default() -> Self {
411-
Self::from_root(Path::new(Self::RUNTIME_DIR))
411+
// Default RUNTIME_DIR
412+
Self::from_root(temp_dir().join("spfs-runtime"))
412413
}
413414
}
414415

415416
impl Config {
416-
const RUNTIME_DIR: &'static str = "/tmp/spfs-runtime";
417417
const UPPER_DIR: &'static str = "upper";
418418
const LOWER_DIR: &'static str = "lower";
419419
const WORK_DIR: &'static str = "work";

0 commit comments

Comments
 (0)