Commit c954dbd0 by lepdou

update

parent e56f0a7a
......@@ -31,8 +31,7 @@ import javax.annotation.PostConstruct;
public class AdminServiceAddressLocator {
private static final int DEFAULT_TIMEOUT_MS = 1000;
// private static final long REFRESH_INTERVAL = 5 * 60 * 1000;
private static final long REFRESH_INTERVAL = 1000;
private static final long REFRESH_INTERVAL = 5 * 60 * 1000;
private static final int RETRY_TIMES = 3;
private static final String ADMIN_SERVICE_URL_PATH = "/services/admin";
......
package com.ctrip.framework.apollo.portal.service;
import com.google.common.base.Objects;
import com.google.gson.Gson;
import com.ctrip.framework.apollo.core.dto.ReleaseDTO;
......@@ -97,7 +98,7 @@ public class ReleaseService {
String key = entry.getKey();
String firstValue = entry.getValue();
String secondValue = secondItems.get(key);
if (secondValue == null || !firstValue.equals(secondValue)) {
if (!Objects.equal(firstValue, secondValue)) {
compareResult.addEntityPair(new KVEntity(key, firstValue), new KVEntity(key, secondValue));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment