fix(aliyundrive_open): increase limit interval (close #4851)

This commit is contained in:
Andy Hsu
2023-07-27 18:26:11 +08:00
parent 4afa822bec
commit 2e23ea68d4
2 changed files with 13 additions and 7 deletions

View File

@ -39,8 +39,8 @@ func (d *AliyundriveOpen) Init(ctx context.Context) error {
return err
}
d.DriveId = utils.Json.Get(res, "default_drive_id").ToString()
d.limitList = utils.LimitRateCtx(d.list, time.Second/4)
d.limitLink = utils.LimitRateCtx(d.link, time.Second)
d.limitList = utils.LimitRateCtx(d.list, time.Second/3)
d.limitLink = utils.LimitRateCtx(d.link, time.Second+time.Millisecond*2)
return nil
}