Skip to content

Commit

Permalink
Should be split off
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Sep 28, 2024
1 parent ae46434 commit f1d92b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/services/sftp/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl oio::Read for SftpReader {

let Some(bytes) = self
.file
.read(size as u32, self.buf.split_to(size))
.read(size as u32, self.buf.split_off(0))
.await
.map_err(parse_sftp_error)?
else {
Expand Down

0 comments on commit f1d92b1

Please sign in to comment.