diff --git a/side-node/src/init.rs b/side-node/src/init.rs index 2a28d24..933dca0 100644 --- a/side-node/src/init.rs +++ b/side-node/src/init.rs @@ -12,7 +12,7 @@ const KEY_FILE: &str = "keys.pem"; const CONFIG_FILE: &str = "config.toml"; pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> { - ensure_directory_exists(&home)?; + ensure_side_directory_exists(&home)?; let (key_path, config_path) = side_path(home.clone()); @@ -26,7 +26,7 @@ pub(crate) fn init(home: PathBuf) -> Result<(), std::io::Error> { /// Ensures that the directory at side_dir exists, so we have a place /// to store our key file and config file. -fn ensure_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> { +fn ensure_side_directory_exists(side_dir: &PathBuf) -> Result<(), std::io::Error> { if side_dir.exists() { return Ok(()); }