Skip to content

Commit 12b04c4

Browse files
Update src/ftp.rs
Co-authored-by: Daniel García <[email protected]>
1 parent 2808855 commit 12b04c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ftp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ impl FtpStream {
289289
Ok(())
290290
}
291291
/// Sets the byte from which the transfer is to be restarted.
292-
pub fn restart_from(&mut self, offset: u64) -> crate::Result<()> {
292+
pub async fn restart_from(&mut self, offset: u64) -> Result<()> {
293293
let rest_command = format!("REST {}\r\n", offset.to_string());
294294
self.write_str(&rest_command)?;
295295
self.read_response(status::REQUEST_FILE_PENDING).map(|_| ())

0 commit comments

Comments
 (0)