mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 12:55:18 +00:00
Remove unused argument to restic.fakeFile
This commit is contained in:
parent
8fb2c0d3c1
commit
2e31120f89
@ -15,7 +15,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// fakeFile returns a reader which yields deterministic pseudo-random data.
|
// fakeFile returns a reader which yields deterministic pseudo-random data.
|
||||||
func fakeFile(t testing.TB, seed, size int64) io.Reader {
|
func fakeFile(seed, size int64) io.Reader {
|
||||||
return io.LimitReader(rand.New(rand.NewSource(seed)), size)
|
return io.LimitReader(rand.New(rand.NewSource(seed)), size)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,7 +138,7 @@ func (fs *fakeFileSystem) saveTree(ctx context.Context, seed int64, depth int) I
|
|||||||
Size: uint64(fileSize),
|
Size: uint64(fileSize),
|
||||||
}
|
}
|
||||||
|
|
||||||
node.Content = fs.saveFile(ctx, fakeFile(fs.t, fileSeed, fileSize))
|
node.Content = fs.saveFile(ctx, fakeFile(fileSeed, fileSize))
|
||||||
tree.Nodes = append(tree.Nodes, node)
|
tree.Nodes = append(tree.Nodes, node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user