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!() } }