ParallelHandler: avoid re-export (cleanup)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
e705b3057f
commit
260147bd73
@ -36,7 +36,7 @@ use pbs_tape::{
|
|||||||
use proxmox_rest_server::WorkerTask;
|
use proxmox_rest_server::WorkerTask;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
tools::ParallelHandler,
|
tools::parallel_handler::ParallelHandler,
|
||||||
server::lookup_user_email,
|
server::lookup_user_email,
|
||||||
tape::{
|
tape::{
|
||||||
TAPE_STATUS_DIR,
|
TAPE_STATUS_DIR,
|
||||||
|
@ -15,7 +15,7 @@ use pbs_datastore::index::IndexFile;
|
|||||||
use pbs_datastore::manifest::{archive_type, ArchiveType, BackupManifest, FileInfo};
|
use pbs_datastore::manifest::{archive_type, ArchiveType, BackupManifest, FileInfo};
|
||||||
use proxmox_sys::fs::lock_dir_noblock_shared;
|
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
|
/// A VerifyWorker encapsulates a task worker, datastore and information about which chunks have
|
||||||
/// already been verified or detected as corrupt.
|
/// already been verified or detected as corrupt.
|
||||||
|
@ -31,7 +31,7 @@ use pbs_tools::sha::sha256;
|
|||||||
use pbs_client::{BackupReader, BackupRepository, HttpClient, HttpClientOptions, RemoteChunkReader};
|
use pbs_client::{BackupReader, BackupRepository, HttpClient, HttpClientOptions, RemoteChunkReader};
|
||||||
use proxmox_rest_server::WorkerTask;
|
use proxmox_rest_server::WorkerTask;
|
||||||
|
|
||||||
use crate::tools::ParallelHandler;
|
use crate::tools::parallel_handler::ParallelHandler;
|
||||||
|
|
||||||
// fixme: implement filters
|
// fixme: implement filters
|
||||||
// fixme: delete vanished groups
|
// fixme: delete vanished groups
|
||||||
|
@ -22,7 +22,6 @@ pub mod systemd;
|
|||||||
pub mod ticket;
|
pub mod ticket;
|
||||||
|
|
||||||
pub mod parallel_handler;
|
pub mod parallel_handler;
|
||||||
pub use parallel_handler::ParallelHandler;
|
|
||||||
|
|
||||||
/// Shortcut for md5 sums.
|
/// Shortcut for md5 sums.
|
||||||
pub fn md5sum(data: &[u8]) -> Result<DigestBytes, Error> {
|
pub fn md5sum(data: &[u8]) -> Result<DigestBytes, Error> {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
//! A thread pool which run a closure in parallel.
|
||||||
|
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::thread::JoinHandle;
|
use std::thread::JoinHandle;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user