b2: Increase list size to maximum

Just request as many files as possible in one call to reduce the number
of network roundtrips.
This commit is contained in:
Michael Eischer 2022-08-21 11:20:03 +02:00
parent de0162ea76
commit 623556bab6
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ type b2Backend struct {
sem sema.Semaphore
}
const defaultListMaxItems = 1000
// Billing happens in 1000 item granlarity, but we are more interested in reducing the number of network round trips
const defaultListMaxItems = 10 * 1000
// ensure statically that *b2Backend implements restic.Backend.
var _ restic.Backend = &b2Backend{}