This commit is contained in:
ravikiran-s 2023-05-03 14:15:06 +05:30
parent 6dec232363
commit 3c07ee37ac

View file

@ -58,7 +58,7 @@ func (d DynamodbStreamAdapterClient) ListShards(ctx context.Context, params *kin
log.Info(fmt.Sprintf("ListShards >>> request %v", string(req)))
var maxResults int32 = 100
if params.MaxResults != nil {
if 100 >= *params.MaxResults {
if *params.MaxResults >= 100 {
params.MaxResults = &maxResults
}
}