2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

prune: get backend connection count via repository

This commit is contained in:
Michael Eischer 2023-10-01 13:33:05 +02:00
parent c7b770eb1f
commit 249605843b

View File

@ -152,7 +152,7 @@ func runPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions) error
return err return err
} }
if repo.Backend().Connections() < 2 { if repo.Connections() < 2 {
return errors.Fatal("prune requires a backend connection limit of at least two") return errors.Fatal("prune requires a backend connection limit of at least two")
} }