From 3734fc25a72dd0965d20748a15235e8964f5e461 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Thu, 9 Feb 2023 10:02:18 +0100 Subject: [PATCH] update callback to take collection by ref --- src/imex/transfer.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/imex/transfer.rs b/src/imex/transfer.rs index 2fe17a4e7..a09d51c0b 100644 --- a/src/imex/transfer.rs +++ b/src/imex/transfer.rs @@ -31,7 +31,6 @@ use crate::qr::Qr; use anyhow::{anyhow, bail, ensure, format_err, Context as _, Result}; use async_channel::Receiver; use futures_lite::StreamExt; -use sendme::blobs::Collection; use sendme::get::{DataStream, Options}; use sendme::protocol::AuthToken; use sendme::provider::{DataSource, Event, Provider, Ticket}; @@ -251,7 +250,7 @@ pub async fn get_backup(context: &Context, qr: Qr) -> Result<()> { ticket.token, opts, on_connected, - on_collection, + |_collection| async { Ok(()) }, on_blob, ) .await @@ -280,12 +279,6 @@ async fn on_connected() -> Result<()> { Ok(()) } -/// Get callback when a collection is received from the provider. -#[allow(clippy::unused_async)] -async fn on_collection(_collection: Collection) -> Result<()> { - Ok(()) -} - /// Get callback when a blob is received from the provider. async fn on_blob( context: &Context,