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);
|
||||
|
||||
info!("Doing initial checksum validation, this might take a while...");
|
||||
let initial_check_results = FileOps::<Sha1>::new(&info, &files, &lengths)
|
||||
.initial_check(options.only_files.as_deref())?;
|
||||
let initial_check_results = spawner.spawn_block_in_place(|| {
|
||||
FileOps::<Sha1>::new(&info, &files, &lengths)
|
||||
.initial_check(options.only_files.as_deref())
|
||||
})?;
|
||||
|
||||
info!(
|
||||
"Initial check results: have {}, needed {}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue