You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/12/04 08:03:17 UTC

[GitHub] [ignite] xtern commented on a change in pull request #8242: IGNITE-13320

xtern commented on a change in pull request #8242:
URL: https://github.com/apache/ignite/pull/8242#discussion_r535906530



##########
File path: modules/control-utility/src/main/java/org/apache/ignite/internal/commandline/encryption/ReencryptionRateCommand.java
##########
@@ -104,22 +102,13 @@
         Double rateLimit = null;
 
         while (argIter.hasNextSubArg()) {
-            String arg = argIter.nextArg("Failed to read command argument.");
+            String rateLimitArg = argIter.nextArg("Expected decimal value for re-encryption rate.");
 
-            ReencryptionRateCommandArg cmdArg = CommandArgUtils.of(arg, ReencryptionRateCommandArg.class);
-
-            if (cmdArg == ReencryptionRateCommandArg.LIMIT) {
-                String rateLimitArg = argIter.nextArg("Expected decimal value for re-encryption rate.");
-
-                try {
-                    rateLimit = Double.parseDouble(rateLimitArg);
-                } catch (NumberFormatException e) {
-                    throw new IllegalArgumentException("Failed to parse " + ReencryptionRateCommandArg.LIMIT +
-                        " command argument. Decimal value expected.", e);
-                }
+            try {
+                rateLimit = Double.parseDouble(rateLimitArg);
+            } catch (NumberFormatException e) {

Review comment:
       Done, thanks




----------------------------------------------------------------
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:
users@infra.apache.org