Skip to content

Commit ece0aa2

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

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
@@ -291,7 +291,7 @@ impl FtpStream {
291291
/// Sets the byte from which the transfer is to be restarted.
292292
pub async fn restart_from(&mut self, offset: u64) -> Result<()> {
293293
let rest_command = format!("REST {}\r\n", offset.to_string());
294-
self.write_str(&rest_command)?;
294+
self.write_str(&rest_command).await?;
295295
self.read_response(status::REQUEST_FILE_PENDING).map(|_| ())
296296
}
297297

0 commit comments

Comments
 (0)