zentol commented on code in PR #20631:
URL: https://github.com/apache/flink/pull/20631#discussion_r951445230


##########
docs/content/docs/dev/datastream/sources.md:
##########
@@ -131,12 +131,12 @@ class MySplitEnumerator implements 
SplitEnumerator<MySplit> {
     @Override
     public void start() {
         ...
-        enumContext.callAsync(this::discoverSplits, splits -> {
-            Map<Integer, List<MockSourceSplit>> assignments = new HashMap<>();
+        enumContext.callAsync(this::discoverSplits, (splits, thrown) -> {

Review Comment:
   Can we make it more obvious where the enumContext comes from? Like adding a 
constructor and field.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to