src/client/backup_writer.rs: rename force_close to cancel

And do not consume self.
This commit is contained in:
Dietmar Maurer 2019-11-08 10:34:16 +01:00
parent 0997967d65
commit e016f9ff2f

View File

@ -134,7 +134,7 @@ impl BackupWriter {
.await .await
} }
pub fn force_close(self) { pub fn cancel(&self) {
self.canceller.cancel(); self.canceller.cancel();
} }