refactor: Merge drive and reader config to enable implementations of tape management without synchronization
This commit is contained in:
@@ -128,15 +128,8 @@ func (o *Operations) Move(from string, to string) error {
|
||||
}
|
||||
defer o.backend.CloseReader()
|
||||
|
||||
drive, err := o.backend.GetDrive()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer o.backend.CloseDrive()
|
||||
|
||||
return recovery.Index(
|
||||
reader,
|
||||
drive,
|
||||
o.metadata,
|
||||
o.pipes,
|
||||
o.crypto,
|
||||
|
||||
Reference in New Issue
Block a user