azagrebin commented on a change in pull request #8090: [FLINK-12067][network] 
Refactor the constructor of NetworkEnvironment
URL: https://github.com/apache/flink/pull/8090#discussion_r270795077
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java
 ##########
 @@ -678,7 +678,7 @@ public static SingleInputGate create(
 
                final SingleInputGate inputGate = new SingleInputGate(
                        owningTaskName, jobId, consumedResultId, 
consumedPartitionType, consumedSubpartitionIndex,
-                       icdd.length, taskActions, metrics, 
networkEnvironment.isCreditBased());
+                       icdd.length, taskActions, metrics, 
networkEnvironment.getConfiguration().isCreditBased());
 
 Review comment:
   could we assign `networkEnvironment.getConfiguration()` to a local variable 
to reuse everywhere?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to