Skip to content

Commit

Permalink
chore: delete license package
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed Apr 21, 2024
1 parent 9f1f858 commit ca38c2e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 511 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.alipay.remoting.util.StringUtils;

/**
* PD服务启动类
* PD 服务启动类
*/
@ComponentScan(basePackages = {"org.apache.hugegraph.pd"})
@SpringBootApplication
Expand All @@ -33,6 +33,7 @@ public class HugePDServer {
public static void main(String[] args) {
String logPath = System.getProperty("logging.path");
if (StringUtils.isBlank(logPath)) {
// TODO: enhance logging configuration
System.setProperty("logging.path", "logs");
System.setProperty("com.alipay.remoting.client.log.level", "error");
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ public synchronized void init(MeterRegistry meterRegistry) {
private void registerMeters() {
Gauge.builder(PREFIX + ".up", () -> 1).register(registry);

Gauge.builder(PREFIX + ".graphs", () -> updateGraphs())
Gauge.builder(PREFIX + ".graphs", this::updateGraphs)
.description("Number of graphs registered in PD")
.register(registry);

Gauge.builder(PREFIX + ".stores", () -> updateStores())
Gauge.builder(PREFIX + ".stores", this::updateStores)
.description("Number of stores registered in PD")
.register(registry);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ public class RegistryRestResponse {
Pdpb.ErrorType errorType;
String message;
Serializable data;

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import lombok.extern.slf4j.Slf4j;

// TODO: merge/move to another package
@Slf4j
public class NoticeBroadcaster {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ private static void doSchedule() {
expireQueue();
//retry
broadcasterQueue.forEach(e -> {

e.notifying();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

import javax.servlet.http.HttpServletRequest;

import org.apache.hugegraph.pd.common.Useless;
import org.apache.hugegraph.pd.grpc.Metapb;
import org.apache.hugegraph.pd.grpc.Pdpb;
import org.apache.hugegraph.pd.model.PeerRestRequest;
Expand Down Expand Up @@ -234,8 +235,7 @@ public Member(Metapb.Member member) {

}

public Member() {

}
@Useless("delete later")
public Member() {}
}
}

0 comments on commit ca38c2e

Please sign in to comment.