src/client/backup_writer.rs: rename force_close to cancel
And do not consume self.
This commit is contained in:
parent
0997967d65
commit
e016f9ff2f
@ -134,7 +134,7 @@ impl BackupWriter {
|
||||
.await
|
||||
}
|
||||
|
||||
pub fn force_close(self) {
|
||||
pub fn cancel(&self) {
|
||||
self.canceller.cancel();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user