forked from TrueCloudLab/restic
backend: move LimitReadCloser to util package
The helper is only intended for usage by backend implementations.
This commit is contained in:
parent
dcd151147c
commit
47232bf8b0
5 changed files with 20 additions and 16 deletions
|
@ -247,7 +247,7 @@ func (b *Local) openReader(_ context.Context, h backend.Handle, length int, offs
|
|||
}
|
||||
|
||||
if length > 0 {
|
||||
return backend.LimitReadCloser(f, int64(length)), nil
|
||||
return util.LimitReadCloser(f, int64(length)), nil
|
||||
}
|
||||
|
||||
return f, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue