mirror of
https://github.com/restic/restic.git
synced 2025-10-09 08:21:52 +00:00
prune: get backend connection count via repository
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user