From 051f69382b9d805e7d56eefbbd908075fca673bf Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Thu, 20 Jun 2024 05:58:32 +0000 Subject: [PATCH] fix: remove unneeded signal argument on cleanup function --- src/session.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.rs b/src/session.rs index 79eb850..674634c 100644 --- a/src/session.rs +++ b/src/session.rs @@ -156,7 +156,7 @@ impl ObjectStorageSession { pb.finish(); } task_handler.await?; - break cleanup(bucket, signal).await; + break cleanup(bucket).await; } sleep(Duration::from_millis(50)).await; @@ -286,7 +286,7 @@ impl SessionTask { } } -async fn cleanup(bucket: Bucket, signal: FunctionSignal) -> Result<()> { +async fn cleanup(bucket: Bucket) -> Result<()> { info!("Cleaning up..."); let delimeter = "/".into();