Github user markap14 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3010#discussion_r219293725
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/node/NodeClusterCoordinator.java
 ---
    @@ -526,6 +579,10 @@ public void removeNode(final NodeIdentifier nodeId, 
final String userDn) {
             storeState();
         }
     
    +    private void onNodeDecommissioned(final NodeIdentifier nodeId) {
    +        eventListeners.stream().forEach(listener -> 
listener.onNodeDecommissioned(nodeId));
    --- End diff --
    
    Can get rid of the call to stream() here and just call forEach() on 
eventListeners.


---

Reply via email to