From dea0d65cda1b6c579fc46a91f07254f175faee5e Mon Sep 17 00:00:00 2001 From: kkould <2435992353@qq.com> Date: Tue, 12 Nov 2024 09:39:43 +0000 Subject: [PATCH] fix: ci fail on opendal --- fusio-opendal/src/fs.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/fusio-opendal/src/fs.rs b/fusio-opendal/src/fs.rs index 8f28b41..4b39aba 100644 --- a/fusio-opendal/src/fs.rs +++ b/fusio-opendal/src/fs.rs @@ -64,16 +64,14 @@ impl Fs for OpendalFs { .map_err(parse_opendal_error) } - fn copy(&self, from: &Path, to: &Path) -> impl Future> + MaybeSend { - self.op.copy(from.as_ref(), to.as_ref()) + async fn copy(&self, from: &Path, to: &Path) -> Result<(), Error> { + self.op + .copy(from.as_ref(), to.as_ref()) + .await + .map_err(parse_opendal_error) } - fn link( - &self, - from: &Path, - to_fs: &F, - to: &Path, - ) -> impl Future> + MaybeSend { + async fn link(&self, from: &Path, to_fs: &F, to: &Path) -> Result<(), Error> { todo!() } }