1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-23 08:16:36 +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 {