diff --git a/src/main/java/opendataio/ratisshell/cli/sh/command/AbstractRatisCommand.java b/src/main/java/opendataio/ratisshell/cli/sh/command/AbstractRatisCommand.java index ef6ef76..3d670ad 100644 --- a/src/main/java/opendataio/ratisshell/cli/sh/command/AbstractRatisCommand.java +++ b/src/main/java/opendataio/ratisshell/cli/sh/command/AbstractRatisCommand.java @@ -101,8 +101,8 @@ public int run(CommandLine cl) throws IOException { .findFirst(); if (!raftGroupId.isPresent()) { mPrintStream.println( - "there are more than one group, you should specific one." + - groupIds); + "there are more than one group, you should specific one." + + groupIds); return -1; } else { remoteGroupId = raftGroupId.get(); diff --git a/src/main/java/opendataio/ratisshell/cli/sh/command/ElectCommand.java b/src/main/java/opendataio/ratisshell/cli/sh/command/ElectCommand.java index 96e5067..4e78c31 100644 --- a/src/main/java/opendataio/ratisshell/cli/sh/command/ElectCommand.java +++ b/src/main/java/opendataio/ratisshell/cli/sh/command/ElectCommand.java @@ -10,7 +10,6 @@ import org.apache.ratis.protocol.RaftPeerId; import java.io.IOException; -import java.net.InetSocketAddress; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors;