2
2
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:
Alexander Neumann 2017-01-23 17:04:53 +01:00
parent fc235317fe
commit 2bd9c9247c

View File

@ -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 {