sanpwc commented on code in PR #5020:
URL: https://github.com/apache/ignite-3/pull/5020#discussion_r1912994420


##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java:
##########
@@ -1506,6 +1518,18 @@ Optional<Long> highestRevision(boolean addition) {
                     .map(Map.Entry::getKey);
         }
 
+        /**
+         * Returns the highest revision which is presented in the {@link 
ZoneState#topologyAugmentationMap()}.
+         *
+         * @return The highest revision which is presented in the {@link 
ZoneState#topologyAugmentationMap()}.
+         */
+        Optional<Long> highestRevision() {
+            return topologyAugmentationMap().entrySet()

Review Comment:
   Since you don't use addition there's no longer need in entrySet(), keySet() 
should be enough.



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