mirror of
https://github.com/restic/restic.git
synced 2024-12-23 00:07:25 +00:00
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:
parent
de0162ea76
commit
623556bab6
1 changed files with 2 additions and 1 deletions
|
@ -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{}
|
||||
|
|
Loading…
Reference in a new issue