mirror of
https://github.com/restic/restic.git
synced 2025-11-14 22:12:49 +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:
@@ -72,8 +72,8 @@ func (r *Repository) UseCache(c *cache.Cache) {
|
||||
|
||||
// PrefixLength returns the number of bytes required so that all prefixes of
|
||||
// all IDs of type t are unique.
|
||||
func (r *Repository) PrefixLength(t restic.FileType) (int, error) {
|
||||
return restic.PrefixLength(r.be, t)
|
||||
func (r *Repository) PrefixLength(ctx context.Context, t restic.FileType) (int, error) {
|
||||
return restic.PrefixLength(ctx, r.be, t)
|
||||
}
|
||||
|
||||
// LoadAndDecrypt loads and decrypts the file with the given type and ID, using
|
||||
|
||||
Reference in New Issue
Block a user