refactor: Remove reader and seeker capabilities from Drive interface to prevent incorrect usage as reader
This commit is contained in:
@@ -56,6 +56,10 @@ var recoveryQueryCmd = &cobra.Command{
|
||||
defer reader.Close()
|
||||
|
||||
if _, err := recovery.Query(
|
||||
config.DriveReaderConfig{
|
||||
Drive: reader,
|
||||
DriveIsRegular: readerIsRegular,
|
||||
},
|
||||
config.DriveConfig{
|
||||
Drive: reader,
|
||||
DriveIsRegular: readerIsRegular,
|
||||
|
||||
Reference in New Issue
Block a user