Skip to content

Commit fa9bb6e

Browse files
committed
feat(delegate_service): fix invalid pagination skip number for bucket info
1 parent 0459402 commit fa9bb6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apiservice/delegate_service.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ func (s *DelegateService) BucketInfo(ctx context.Context, req *api.BucketInfoReq
5959
first = page.GetFirst()
6060
}
6161
if skip >= uint64(len(bucketInfo)) {
62-
return nil, errors.New("invalid pagination skip number for bucket info")
62+
bucketInfoList.BucketInfo = make([]*api.BucketInfo, 0)
63+
bucketInfoLists = append(bucketInfoLists, bucketInfoList)
64+
continue
6365
}
6466
if uint64(len(bucketInfo))-skip < first {
6567
first = uint64(len(bucketInfo)) - skip

0 commit comments

Comments
 (0)