repository: add SaveBlobAsync method

This commit is contained in:
Michael Eischer
2025-11-26 21:18:21 +01:00
parent 4d2da63829
commit 046b0e711d
20 changed files with 145 additions and 68 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func TestCreateSnapshot(t testing.TB, repo restic.Repository, at time.Time, dept
}
var treeID restic.ID
test.OK(t, repo.WithBlobUploader(context.TODO(), func(ctx context.Context, uploader restic.BlobSaver) error {
test.OK(t, repo.WithBlobUploader(context.TODO(), func(ctx context.Context, uploader restic.BlobSaverWithAsync) error {
treeID = fs.saveTree(ctx, uploader, seed, depth)
return nil
}))