Skip to content

Commit

Permalink
perf(139): reduce the number of requests in groupGetFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Jan 20, 2025
1 parent d466322 commit 48651bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/139/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (d *Yun139) groupGetFiles(catalogID string) ([]model.Obj, error) {
}
files = append(files, &f)
}
if pageNum > resp.Data.GetGroupContentResult.NodeCount {
if (pageNum + 99) > resp.Data.GetGroupContentResult.NodeCount {
break
}
pageNum = pageNum + 100
Expand Down

0 comments on commit 48651bd

Please sign in to comment.