This is an automated email from the ASF dual-hosted git repository. xuanwo pushed a commit to branch cleanup-sink in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 0926e2f43dbbc3293b9964cc89e0721e6c8a8d6d Author: Xuanwo <[email protected]> AuthorDate: Thu Aug 31 17:27:08 2023 +0800 Implement fake abort Signed-off-by: Xuanwo <[email protected]> --- core/src/services/sftp/writer.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/services/sftp/writer.rs b/core/src/services/sftp/writer.rs index 6e218044c..b48395814 100644 --- a/core/src/services/sftp/writer.rs +++ b/core/src/services/sftp/writer.rs @@ -52,10 +52,7 @@ impl oio::Write for SftpWriter { } async fn abort(&mut self) -> Result<()> { - Err(Error::new( - ErrorKind::Unsupported, - "SFTP does not support aborting writes", - )) + Ok(()) } async fn close(&mut self) -> Result<()> {
