Skip to content

Commit

Permalink
Follow #11262, disable cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Apr 24, 2023
1 parent d6f9d8d commit 9bb4224
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
*/
package org.apache.dubbo.registry.nacos;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.constants.LoggerCodeConstants;
import org.apache.dubbo.common.logger.ErrorTypeAwareLogger;
Expand All @@ -35,7 +28,13 @@
import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.NamingService;

import static com.alibaba.nacos.api.PropertyKeyConst.NAMING_LOAD_CACHE_AT_START;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;

import static com.alibaba.nacos.api.PropertyKeyConst.PASSWORD;
import static com.alibaba.nacos.api.PropertyKeyConst.SERVER_ADDR;
import static com.alibaba.nacos.api.PropertyKeyConst.USERNAME;
Expand Down Expand Up @@ -199,8 +198,6 @@ private void setProperties(URL url, Properties properties) {
if (StringUtils.isNotEmpty(url.getPassword())) {
properties.put(PASSWORD, url.getPassword());
}

putPropertyIfAbsent(url, properties, NAMING_LOAD_CACHE_AT_START, "true");
}

private void putPropertyIfAbsent(URL url, Properties properties, String propertyName, String defaultValue) {
Expand Down

0 comments on commit 9bb4224

Please sign in to comment.