Skip to content

Commit

Permalink
去除空格
Browse files Browse the repository at this point in the history
  • Loading branch information
mindfocus authored Jun 25, 2024
1 parent 6be4448 commit 2f67463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public boolean parse(final String conf) {
peerStr = peerStr.substring(0, index);
isLearner = true;
}
if (peer.parse(peerStr)) {
if (peer.parse(StringUtils.trim(peerStr))) {
if (isLearner) {
addLearner(peer);
} else {
Expand Down

0 comments on commit 2f67463

Please sign in to comment.