Remove fallback to .arti/cache for cache directory

This commit is contained in:
Nick Mathewson 2021-02-12 10:59:06 -05:00
parent d8c1e7f0cf
commit 209d1df242
1 changed files with 1 additions and 5 deletions

View File

@ -131,12 +131,8 @@ impl NetDirConfigBuilder {
};
if self.cache_path.is_none() {
// XXXX use dirs crate?
let mut pb: PathBuf = std::env::var_os("HOME").unwrap().into();
pb.push(".arti/cache");
self.cache_path = Some(pb);
return Err(Error::BadNetworkConfig("No cache path configured").into());
}
if self.authorities.is_empty() {
return Err(Error::BadNetworkConfig("No authorities configured").into());
}