From 249605843b264de875fde0bdfc6466bd21e9de56 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 1 Oct 2023 13:33:05 +0200 Subject: [PATCH] prune: get backend connection count via repository --- cmd/restic/cmd_prune.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_prune.go b/cmd/restic/cmd_prune.go index 1065e78bc..3994620ab 100644 --- a/cmd/restic/cmd_prune.go +++ b/cmd/restic/cmd_prune.go @@ -152,7 +152,7 @@ func runPrune(ctx context.Context, opts PruneOptions, gopts GlobalOptions) error return err } - if repo.Backend().Connections() < 2 { + if repo.Connections() < 2 { return errors.Fatal("prune requires a backend connection limit of at least two") }