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