mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:37:40 +00:00
pass context to Find / FindSnapshot
This allows proper interruption of restic while it searches for snapshots or key files.
This commit is contained in:
@@ -574,7 +574,7 @@ func benchmarkSnapshotScaling(t *testing.B, newSnapshots int) {
|
||||
chkr, repo, cleanup := loadBenchRepository(t)
|
||||
defer cleanup()
|
||||
|
||||
snID, err := restic.FindSnapshot(repo, "51d249d2")
|
||||
snID, err := restic.FindSnapshot(context.TODO(), repo, "51d249d2")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user