cmd/restic: Use a dedicated cache for each rejectIfPresent

This commit is contained in:
Fabian Wickborn 2017-11-27 17:30:53 +01:00
parent 901cd5edef
commit 1ea518d5ef
3 changed files with 5 additions and 6 deletions

View file

@ -372,9 +372,8 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, args []string) error {
opts.ExcludeIfPresent = append(opts.ExcludeIfPresent, "CACHEDIR.TAG:Signature: 8a477f597d28d172789f06886806bc55")
}
rc := &rejectionCache{}
for _, spec := range opts.ExcludeIfPresent {
f, err := rejectIfPresent(spec, rc)
f, err := rejectIfPresent(spec)
if err != nil {
return err
}