mirror of
https://github.com/restic/restic.git
synced 2025-10-09 12:41:58 +00:00
backend: move LimitReadCloser to util package
The helper is only intended for usage by backend implementations.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user