mirror of
https://github.com/YGGverse/aquatic-crawler.git
synced 2026-03-31 17:15:35 +00:00
init only_files with estimated capacity
This commit is contained in:
parent
5a8adae1d8
commit
de15a8270e
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,9 @@ async fn main() -> Result<()> {
|
|||
initial_peers: peers.initial_peers(),
|
||||
list_only: preload_regex.is_none(),
|
||||
// it is important to blacklist all files preload until initiation
|
||||
only_files: Some(Vec::new()),
|
||||
only_files: Some(Vec::with_capacity(
|
||||
arg.preload_max_filecount.unwrap_or_default(),
|
||||
)),
|
||||
// the destination folder to preload files match `only_files_regex`
|
||||
// * e.g. images for audio albums
|
||||
output_folder: storage.output_folder(&i, true).ok(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue