forked from TrueCloudLab/restic
backend: rename LimitReader to LimitReadCloser
This commit is contained in:
parent
0ca678228d
commit
1f94ac724f
3 changed files with 8 additions and 6 deletions
|
@ -312,7 +312,7 @@ func (b *Local) GetReader(t backend.Type, name string, offset, length uint) (io.
|
|||
return f, nil
|
||||
}
|
||||
|
||||
return backend.LimitReader(f, int64(length)), nil
|
||||
return backend.LimitReadCloser(f, int64(length)), nil
|
||||
}
|
||||
|
||||
// Test returns true if a blob of the given type and name exists in the backend.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue