-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor RestClient as interface #49
Conversation
Change-Id: Ib7153dc7b8d3bf3df9d19662b54cb05ff14c032b
Codecov Report
@@ Coverage Diff @@
## master #49 +/- ##
============================================
+ Coverage 81.73% 81.85% +0.11%
- Complexity 685 686 +1
============================================
Files 57 57
Lines 2075 2083 +8
Branches 303 304 +1
============================================
+ Hits 1696 1705 +9
Misses 250 250
+ Partials 129 128 -1
Continue to review full report at Codecov.
|
Change-Id: I57dd2db3c1b472403967f0b133ddb34c8f0edf48
2c49822
to
2b78aee
Compare
} | ||
|
||
public AbstractRestClient(String url, String user, String password, int timeout, | ||
int maxTotal, int maxPerRoute) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align url
} | ||
|
||
public AbstractRestClient(String url, String user, String password, int timeout, | ||
int maxTotal, int maxPerRoute, String protocol, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align
public abstract class AbstractRestClient implements RestClient { | ||
|
||
// Time unit: hours | ||
private static long TTL = 24L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
Change-Id: I098656e7607ebb326e4708308ccc81d3d81c5b44
Change-Id: I7a9b325a6682939e20fceee7448815fa94512976
} | ||
|
||
private static Client wrapTrustConfig(String url, ClientConfig config) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line
Change-Id: I2e1e5a7c678cabb3e55a957da45f4640cb80aafc
Change-Id: Ib7153dc7b8d3bf3df9d19662b54cb05ff14c032b
refs:
https://github.com/hugegraph/hugegraph/network/alert/pom.xml/com.google.guava:guava/open
https://github.com/hugegraph/hugegraph/issues/1043