mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +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
@ -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 New Issue
Block a user