move ChunkStream to pbs-client

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-07-20 10:51:19 +02:00
parent 513d019ac3
commit 38629c3961
4 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ use anyhow::{Error};
use futures::ready;
use futures::stream::{Stream, TryStream};
use super::Chunker;
use pbs_datastore::Chunker;
/// Split input stream into dynamic sized chunks
pub struct ChunkStream<S: Unpin> {

View File

@ -44,6 +44,9 @@ pub use backup_repo::*;
mod backup_specification;
pub use backup_specification::*;
mod chunk_stream;
pub use chunk_stream::{ChunkStream, FixedChunkStream};
pub const PROXMOX_BACKUP_TCP_KEEPALIVE_TIME: u32 = 120;
/// Connect to localhost:8007 as root@pam

View File

@ -71,9 +71,6 @@ pub use pbs_datastore::fixed_index::*;
pub use pbs_datastore::read_chunk::*;
mod chunk_stream;
pub use chunk_stream::*;
// Split
mod read_chunk;
pub use read_chunk::*;

View File

@ -38,6 +38,8 @@ use pbs_client::{
BackupSpecificationType,
BackupStats,
BackupWriter,
ChunkStream,
FixedChunkStream,
HttpClient,
PxarBackupStream,
RemoteChunkReader,
@ -75,8 +77,6 @@ use pbs_tools::tokio::TokioWriterAdapter;
use proxmox_backup::backup::{
BufferedDynamicReader,
ChunkStream,
FixedChunkStream,
};
use proxmox_backup::tools;