Add progress report for loading blobs

This commit is contained in:
Alexander Neumann 2015-02-21 15:32:48 +01:00
parent 58cded6b75
commit a59b0ec1f6
5 changed files with 76 additions and 20 deletions

View file

@ -146,7 +146,7 @@ func BenchmarkArchiveDirectory(b *testing.B) {
func snapshot(t testing.TB, server restic.Server, path string) *restic.Snapshot {
arch, err := restic.NewArchiver(server)
ok(t, err)
ok(t, arch.Preload())
ok(t, arch.Preload(nil))
sn, _, err := arch.Snapshot(nil, path, nil)
ok(t, err)
return sn
@ -230,6 +230,6 @@ func BenchmarkPreload(t *testing.B) {
// create new archiver and preload
arch2, err := restic.NewArchiver(server)
ok(t, err)
ok(t, arch2.Preload())
ok(t, arch2.Preload(nil))
}
}