From ae464347a8766e47d787245aa24b08b7941ed879 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Sat, 28 Sep 2024 13:44:17 +0800 Subject: [PATCH] Fix typo Signed-off-by: Xuanwo --- core/src/services/sftp/reader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/services/sftp/reader.rs b/core/src/services/sftp/reader.rs index 90a231472f2c..861015ba4a44 100644 --- a/core/src/services/sftp/reader.rs +++ b/core/src/services/sftp/reader.rs @@ -63,7 +63,7 @@ impl oio::Read for SftpReader { let Some(bytes) = self .file - .read(size as u32, self.buf.split_off(size)) + .read(size as u32, self.buf.split_to(size)) .await .map_err(parse_sftp_error)? else {