]> git.proxmox.com Git - proxmox-backup.git/commitdiff
fix StdChannelWriter usage
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Nov 2021 10:27:20 +0000 (11:27 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Nov 2021 10:27:20 +0000 (11:27 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
proxmox-backup-client/src/main.rs

index 3136f3f8e376ae45966114dbc9fd9007141eccec..ca58759402ffb6a68b7457da3661f615406df0f4 100644 (file)
@@ -176,7 +176,7 @@ async fn backup_directory<P: AsRef<Path>>(
     dir_path: P,
     archive_name: &str,
     chunk_size: Option<usize>,
-    catalog: Arc<Mutex<CatalogWriter<TokioWriterAdapter<StdChannelWriter>>>>,
+    catalog: Arc<Mutex<CatalogWriter<TokioWriterAdapter<StdChannelWriter<Error>>>>>,
     pxar_create_options: pbs_client::pxar::PxarCreateOptions,
     upload_options: UploadOptions,
 ) -> Result<BackupStats, Error> {
@@ -478,7 +478,7 @@ async fn start_garbage_collection(param: Value) -> Result<Value, Error> {
 }
 
 struct CatalogUploadResult {
-    catalog_writer: Arc<Mutex<CatalogWriter<TokioWriterAdapter<StdChannelWriter>>>>,
+    catalog_writer: Arc<Mutex<CatalogWriter<TokioWriterAdapter<StdChannelWriter<Error>>>>>,
     result: tokio::sync::oneshot::Receiver<Result<BackupStats, Error>>,
 }