Merge pull request #3475 from MichaelEischer/local-sftp-conn-limit

Limit concurrent operations for local / sftp backend
This commit is contained in:
Alexander Neumann authored and GitHub committed 2022-04-09 21:33:00 +02:00
commit 04e054465a
15 files changed
+209 -136

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ func TestRepository(t testing.TB) (r restic.Repository, cleanup func()) {
// TestOpenLocal opens a local repository.
func TestOpenLocal(t testing.TB, dir string) (r restic.Repository) {
be, err := local.Open(context.TODO(), local.Config{Path: dir})
be, err := local.Open(context.TODO(), local.Config{Path: dir, Connections: 2})
if err != nil {
t.Fatal(err)
}