Skip to content

Commit a23fb42

Browse files
committed
reduce config service locator retry times to 2
1 parent 180e101 commit a23fb42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apollo-client/src/main/java/com/ctrip/framework/apollo/internals/ConfigServiceLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private synchronized void updateConfigServices() {
105105
String url = assembleMetaServiceUrl();
106106

107107
HttpRequest request = new HttpRequest(url);
108-
int maxRetries = 5;
108+
int maxRetries = 2;
109109
Throwable exception = null;
110110

111111
for (int i = 0; i < maxRetries; i++) {

0 commit comments

Comments
 (0)