This commit is contained in:
Christien Rioux 2024-01-19 14:34:09 -05:00
parent 7848c14c2b
commit b9705285e9
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
use std::path::PathBuf;
use directories::ProjectDirs;
use crate::*;
use directories::ProjectDirs;
use std::path::PathBuf;
////////////////////////////////////////////////////////////////////////////////////////////////
pub type ConfigCallbackReturn = VeilidAPIResult<Box<dyn core::any::Any + Send>>;
@ -329,6 +329,9 @@ impl Default for VeilidConfigDHT {
remote_max_records: 128,
remote_max_subkey_cache_memory_mb: 256,
remote_max_storage_space_mb: 256,
public_watch_limit: 32,
member_watch_limit: 8,
max_watch_expiration_ms: 600000,
}
}
}

View File

@ -381,7 +381,7 @@ cfg_if::cfg_if! {
}
} else {
pub fn ensure_file_private_owner<P:AsRef<Path>>(_path: P) -> Result<(), String>
pub fn ensure_file_private_owner<P:AsRef<Path>>(path: P) -> Result<(), String>
{
let path = path.as_ref();
if !path.is_file() {