forked from TrueCloudLab/restic
Merge pull request #1391 from armhold/b2-listmax
pass in defaultListMaxItems to b2Backend constructor
This commit is contained in:
commit
c71ba466ea
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,8 @@ func Open(cfg Config, rt http.RoundTripper) (restic.Backend, error) {
|
||||||
Join: path.Join,
|
Join: path.Join,
|
||||||
Path: cfg.Prefix,
|
Path: cfg.Prefix,
|
||||||
},
|
},
|
||||||
sem: sem,
|
listMaxItems: defaultListMaxItems,
|
||||||
|
sem: sem,
|
||||||
}
|
}
|
||||||
|
|
||||||
return be, nil
|
return be, nil
|
||||||
|
@ -110,7 +111,8 @@ func Create(cfg Config, rt http.RoundTripper) (restic.Backend, error) {
|
||||||
Join: path.Join,
|
Join: path.Join,
|
||||||
Path: cfg.Prefix,
|
Path: cfg.Prefix,
|
||||||
},
|
},
|
||||||
sem: sem,
|
listMaxItems: defaultListMaxItems,
|
||||||
|
sem: sem,
|
||||||
}
|
}
|
||||||
|
|
||||||
present, err := be.Test(context.TODO(), restic.Handle{Type: restic.ConfigFile})
|
present, err := be.Test(context.TODO(), restic.Handle{Type: restic.ConfigFile})
|
||||||
|
|
Loading…
Reference in a new issue