mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
checker: Remove Load() from test error backend
This commit is contained in:
parent
fc235317fe
commit
2bd9c9247c
@ -209,15 +209,6 @@ type errorBackend struct {
|
||||
ProduceErrors bool
|
||||
}
|
||||
|
||||
func (b errorBackend) Load(h restic.Handle, p []byte, off int64) (int, error) {
|
||||
n, err := b.Backend.Load(h, p, off)
|
||||
|
||||
if b.ProduceErrors {
|
||||
induceError(p)
|
||||
}
|
||||
return n, err
|
||||
}
|
||||
|
||||
func (b errorBackend) Get(h restic.Handle, length int, offset int64) (io.ReadCloser, error) {
|
||||
rd, err := b.Backend.Get(h, length, offset)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user