Skip to content

Commit

Permalink
feat: del useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
其一 committed May 24, 2024
1 parent 551019b commit c6d4e85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public abstract class AbstractMetadataReport implements MetadataReport {

protected static final String DEFAULT_ROOT = "dubbo";

private static final int ONE_DAY_IN_MILLISECONDS = 60 * 24 * 60 * 1000;
protected static final int ONE_DAY_IN_MILLISECONDS = 60 * 24 * 60 * 1000;
private static final int FOUR_HOURS_IN_MILLISECONDS = 60 * 4 * 60 * 1000;
// Log output
protected final ErrorTypeAwareLogger logger = LoggerFactory.getErrorTypeAwareLogger(getClass());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@
import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;
import redis.clients.jedis.params.SetParams;

import static org.apache.dubbo.common.constants.CommonConstants.CLUSTER_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.CYCLE_REPORT_KEY;
import static org.apache.dubbo.common.constants.CommonConstants.DEFAULT_TIMEOUT;
import static org.apache.dubbo.common.constants.CommonConstants.TIMEOUT_KEY;
import static org.apache.dubbo.common.constants.LoggerCodeConstants.TRANSPORT_FAILED_RESPONSE;
import static org.apache.dubbo.metadata.MetadataConstants.META_DATA_STORE_TAG;
import static org.apache.dubbo.metadata.report.support.Constants.DEFAULT_METADATA_REPORT_CYCLE_REPORT;

/**
* RedisMetadataReport
Expand All @@ -62,8 +65,7 @@ public class RedisMetadataReport extends AbstractMetadataReport {
private int timeout;
private String password;

protected void doSaveMetadata(ServiceMetadataIdentifier serviceMetadataIdentifier, URL url) {

private SetParams jedisSetParams=SetParams.setParams();
public RedisMetadataReport(URL url) {
super(url);
timeout = url.getParameter(TIMEOUT_KEY, DEFAULT_TIMEOUT);
Expand Down

0 comments on commit c6d4e85

Please sign in to comment.