GOODBOY008 commented on code in PR #24692: URL: https://github.com/apache/flink/pull/24692#discussion_r1732070723
########## docs/content.zh/docs/connectors/datastream/datagen.md: ########## @@ -65,14 +65,13 @@ Rate Limiting `Long` values at the overall source rate (across all source subtasks) not exceeding 100 events per second. ```java -GeneratorFunction<Long, Long> generatorFunction = index -> index; -double recordsPerSecond = 100; +GeneratorFunction<Long, String> generatorFunction = index -> "Number: " + index; DataGeneratorSource<String> source = new DataGeneratorSource<>( generatorFunction, Long.MAX_VALUE, - RateLimiterStrategy.perSecond(recordsPerSecond), + RateLimiterStrategy.perSecond(4), Review Comment: The `RateLimiterStrategy` value is not corresponding to the comment. https://github.com/apache/flink/blob/5217d50e58e6210e60c3e8a46ac948ccc7f0c901/docs/content.zh/docs/connectors/datastream/datagen.md?plain=1#L40-L43 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org