-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(es): 移除 EsClient 中的参数验证 (#911)
- Loading branch information
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
@@ -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); | ||
|
||
|