Initial check to use block_in_place
This commit is contained in:
parent
2ac76683e6
commit
99208800f4
1 changed files with 4 additions and 2 deletions
|
|
@ -198,8 +198,10 @@ impl TorrentManager {
|
||||||
debug!("computed lengths: {:?}", &lengths);
|
debug!("computed lengths: {:?}", &lengths);
|
||||||
|
|
||||||
info!("Doing initial checksum validation, this might take a while...");
|
info!("Doing initial checksum validation, this might take a while...");
|
||||||
let initial_check_results = FileOps::<Sha1>::new(&info, &files, &lengths)
|
let initial_check_results = spawner.spawn_block_in_place(|| {
|
||||||
.initial_check(options.only_files.as_deref())?;
|
FileOps::<Sha1>::new(&info, &files, &lengths)
|
||||||
|
.initial_check(options.only_files.as_deref())
|
||||||
|
})?;
|
||||||
|
|
||||||
info!(
|
info!(
|
||||||
"Initial check results: have {}, needed {}",
|
"Initial check results: have {}, needed {}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue