feat(onedrive): customize chunk size (close #1927)

This commit is contained in:
Noah Hsu
2022-10-08 22:23:33 +08:00
parent dcaaae366b
commit 30f992c6a8
3 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,9 @@ func (d *Onedrive) Init(ctx context.Context, storage model.Storage) error {
if err != nil {
return err
}
if d.ChunkSize < 1 {
d.ChunkSize = 5
}
return d.refreshToken()
}