forked from TrueCloudLab/restic
prune: get backend connection count via repository
This commit is contained in:
parent
c7b770eb1f
commit
249605843b
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue