morozov commented on code in PR #24692:
URL: https://github.com/apache/flink/pull/24692#discussion_r1732153194


##########
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:
   Good catch 🤦‍♂️ Fixed.



-- 
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

Reply via email to