mirror of
https://github.com/restic/restic.git
synced 2024-12-23 16:26:11 +00:00
checker: Remove Load() from test error backend
This commit is contained in:
parent
fc235317fe
commit
2bd9c9247c
1 changed files with 0 additions and 9 deletions
|
@ -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 a new issue