We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b04c4 commit ece0aa2Copy full SHA for ece0aa2
src/ftp.rs
@@ -291,7 +291,7 @@ impl FtpStream {
291
/// Sets the byte from which the transfer is to be restarted.
292
pub async fn restart_from(&mut self, offset: u64) -> Result<()> {
293
let rest_command = format!("REST {}\r\n", offset.to_string());
294
- self.write_str(&rest_command)?;
+ self.write_str(&rest_command).await?;
295
self.read_response(status::REQUEST_FILE_PENDING).map(|_| ())
296
}
297
0 commit comments