Skip to content

Commit

Permalink
perf: modify onedrive upload chunk size (#1831 close #1790)
Browse files Browse the repository at this point in the history
improve onedrive upload speed
  • Loading branch information
hdm9527 authored Sep 27, 2022
1 parent 9d2e988 commit 4e13b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/onedrive/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (d *Onedrive) upBig(ctx context.Context, dstDir model.Obj, stream model.Fil
}
uploadUrl := jsoniter.Get(res, "uploadUrl").ToString()
var finish int64 = 0
const DEFAULT = 4 * 1024 * 1024
const DEFAULT = 100 * 1024 * 1024
for finish < stream.GetSize() {
if utils.IsCanceled(ctx) {
return ctx.Err()
Expand Down

0 comments on commit 4e13b1a

Please sign in to comment.