/// Creates a default config with the given paths.
Creates a default config with the given paths.
Creates a default config with the given paths .
fn default_with_paths(cache_dir: PathBuf, tal_dir: PathBuf) -> Self {
        Config {
            cache_dir,
            tal_dir,
            exceptions: Vec::new(),
            strict: DEFAULT_STRICT,
            rsync_command: "rsync".into(),
            rsync_args: None,
            rsync_count: DEFAULT_RSYNC_COUNT,
            rsync_timeout: Duration::from_secs(DEFAULT_RSYNC_TIMEOUT),
            validation_threads: ::num_cpus::get(),
            refresh: Duration::from_secs(DEFAULT_REFRESH),
            retry: Duration::from_secs(DEFAULT_RETRY),
            expire: Duration::from_secs(DEFAULT_EXPIRE),
            history_size: DEFAULT_HISTORY_SIZE,
            tcp_listen: Self::default_tcp_listen(),
            http_listen: Vec::new(),
            log_level: LevelFilter::Warn,
            log_target: LogTarget::default(),
            pid_file: None,
            working_dir: None,
            chroot: None
        }
    }
fn default_with_paths ( cache_dir : PathBuf , tal_dir : PathBuf ) -> Self { Config { cache_dir , tal_dir , exceptions : Vec :: new ( ) , strict : DEFAULT_STRICT , rsync_command : " " . into ( ) , rsync_args : None , rsync_count : DEFAULT_RSYNC_COUNT , rsync_timeout : Duration :: from_secs ( DEFAULT_RSYNC_TIMEOUT ) , validation_threads : :: num_cpus :: get ( ) , refresh : Duration :: from_secs ( DEFAULT_REFRESH ) , retry : Duration :: from_secs ( DEFAULT_RETRY ) , expire : Duration :: from_secs ( DEFAULT_EXPIRE ) , history_size : DEFAULT_HISTORY_SIZE , tcp_listen : Self :: default_tcp_listen ( ) , http_listen : Vec :: new ( ) , log_level : LevelFilter :: Warn , log_target : LogTarget :: default ( ) , pid_file : None , working_dir : None , chroot : None } }
Creates a default config with the given paths.
Creates a default config with the given paths .
cache_dir
PathBuf
tal_dir
PathBuf