From 38c3061df70374469e8633014555570276100abe Mon Sep 17 00:00:00 2001 From: George Armhold Date: Thu, 26 Oct 2017 14:22:16 -0400 Subject: [PATCH 1/2] pass in defaultListMaxItems to b2Backend constructor gh-1385 --- internal/backend/b2/b2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/backend/b2/b2.go b/internal/backend/b2/b2.go index 4c68953b4..0624c1c3a 100644 --- a/internal/backend/b2/b2.go +++ b/internal/backend/b2/b2.go @@ -70,6 +70,7 @@ func Open(cfg Config, rt http.RoundTripper) (restic.Backend, error) { Join: path.Join, Path: cfg.Prefix, }, + listMaxItems: defaultListMaxItems, sem: sem, } @@ -110,6 +111,7 @@ func Create(cfg Config, rt http.RoundTripper) (restic.Backend, error) { Join: path.Join, Path: cfg.Prefix, }, + listMaxItems: defaultListMaxItems, sem: sem, } From bd0ada7842c073a1084bc17fe73260bb21b6d2b4 Mon Sep 17 00:00:00 2001 From: George Armhold Date: Thu, 26 Oct 2017 16:37:11 -0400 Subject: [PATCH 2/2] go fmt --- internal/backend/b2/b2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/backend/b2/b2.go b/internal/backend/b2/b2.go index 0624c1c3a..9586266c0 100644 --- a/internal/backend/b2/b2.go +++ b/internal/backend/b2/b2.go @@ -71,7 +71,7 @@ func Open(cfg Config, rt http.RoundTripper) (restic.Backend, error) { Path: cfg.Prefix, }, listMaxItems: defaultListMaxItems, - sem: sem, + sem: sem, } return be, nil @@ -112,7 +112,7 @@ func Create(cfg Config, rt http.RoundTripper) (restic.Backend, error) { Path: cfg.Prefix, }, listMaxItems: defaultListMaxItems, - sem: sem, + sem: sem, } present, err := be.Test(context.TODO(), restic.Handle{Type: restic.ConfigFile})