davidradl commented on code in PR #26419:
URL: https://github.com/apache/flink/pull/26419#discussion_r2032812978


##########
flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java:
##########
@@ -358,9 +359,10 @@ public <R> SingleOutputStreamOperator<R> process(
     @Internal
     public <R> SingleOutputStreamOperator<R> process(
             KeyedProcessFunction<KEY, T, R> keyedProcessFunction, 
TypeInformation<R> outputType) {
-
-        KeyedProcessOperator<KEY, T, R> operator =
-                new KeyedProcessOperator<>(clean(keyedProcessFunction));
+        OneInputStreamOperator operator =
+                isEnableAsyncState()
+                        ? new 
AsyncKeyedProcessOperator<>(clean(keyedProcessFunction))

Review Comment:
   nit: `clean(keyedProcessFunction)` is repeated on both lines - can we user a 
variable?



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