Skip to content

Commit

Permalink
refactor(es): 移除 EsClient 中的参数验证 (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxh authored Jan 3, 2025
2 parents f937ac5 + 55b8da1 commit 5f51e99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jcommon/es/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.6.1-jdk21</version>
</parent>
<artifactId>es</artifactId>
<version>1.6.2-jdk21</version>
<version>1.6.3-jdk21</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
3 changes: 1 addition & 2 deletions jcommon/es/src/main/java/com/xiaomi/mone/es/EsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
* @author [email protected]
*/
public class EsClient {

private static Sniffer sniffer;
private static final int SNIFF_INTERVAL_MILLIS = 60 * 1000 * 3;
private static final int SNIFF_AFTER_FAILURE_DELAY_MILLIS = 60 * 1000;
Expand Down Expand Up @@ -132,7 +131,7 @@ private RestClientBuilder createRestClientBuilder(String esAddr, Header[] defaul


public EsClient(String esAddr, String user, String pwd) {
validateParams(esAddr, user, pwd);
// validateParams(esAddr, user, pwd);

List<HttpHost> hosts = createHttpHosts(esAddr);

Expand Down

0 comments on commit 5f51e99

Please sign in to comment.