You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to fetch all voters list for a specific Article so sending the postId I am not able to get all information if the voters are higher than 100 because of the checkLimit which has some constants set by maximum of 100
if uint32(len(voterList)) >= voterLimit {
return false
}
or exposing a sort of pagination in voteWrap.ForEachByOrder method. I would appreciate this feature to create dapps / services on top of contentos blockchain
The text was updated successfully, but these errors were encountered:
I am trying to fetch all voters list for a specific Article so sending the postId I am not able to get all information if the voters are higher than 100 because of the checkLimit which has some constants set by maximum of 100
Method
**func (as *APIService) GetPostInfoById (ctx context.Context, req grpcpb.GetPostInfoByIdRequest) (grpcpb.GetPostInfoByIdResponse, error)
One way to solve would be removing the check
if uint32(len(voterList)) >= voterLimit {
return false
}
or exposing a sort of pagination in voteWrap.ForEachByOrder method. I would appreciate this feature to create dapps / services on top of contentos blockchain
The text was updated successfully, but these errors were encountered: