mirror of
https://github.com/restic/restic.git
synced 2025-10-09 08:11:18 +00:00
Use _ as parameter name for unused Context
The context is required by the implemented interface.
This commit is contained in:
2
internal/cache/backend_test.go
vendored
2
internal/cache/backend_test.go
vendored
@@ -118,7 +118,7 @@ type loadErrorBackend struct {
|
||||
loadError error
|
||||
}
|
||||
|
||||
func (be loadErrorBackend) Load(ctx context.Context, h restic.Handle, length int, offset int64, fn func(rd io.Reader) error) error {
|
||||
func (be loadErrorBackend) Load(_ context.Context, _ restic.Handle, _ int, _ int64, _ func(rd io.Reader) error) error {
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
return be.loadError
|
||||
}
|
||||
|
Reference in New Issue
Block a user