use proxmox_rest_server::WorkerTask;
use crate::{
- tools::ParallelHandler,
+ tools::parallel_handler::ParallelHandler,
server::lookup_user_email,
tape::{
TAPE_STATUS_DIR,
use pbs_datastore::manifest::{archive_type, ArchiveType, BackupManifest, FileInfo};
use proxmox_sys::fs::lock_dir_noblock_shared;
-use crate::tools::ParallelHandler;
+use crate::tools::parallel_handler::ParallelHandler;
/// A VerifyWorker encapsulates a task worker, datastore and information about which chunks have
/// already been verified or detected as corrupt.
use pbs_client::{BackupReader, BackupRepository, HttpClient, HttpClientOptions, RemoteChunkReader};
use proxmox_rest_server::WorkerTask;
-use crate::tools::ParallelHandler;
+use crate::tools::parallel_handler::ParallelHandler;
// fixme: implement filters
// fixme: delete vanished groups
pub mod ticket;
pub mod parallel_handler;
-pub use parallel_handler::ParallelHandler;
/// Shortcut for md5 sums.
pub fn md5sum(data: &[u8]) -> Result<DigestBytes, Error> {
+//! A thread pool which run a closure in parallel.
+
use std::sync::{Arc, Mutex};
use std::thread::JoinHandle;