Skip to content

Commit

Permalink
fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sodaRyCN committed Apr 22, 2024
1 parent 537a760 commit 96baaeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions eventmesh-admin-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dependencies {
implementation project(":eventmesh-spi")
implementation project(":eventmesh-common")
implementation project(":eventmesh-registry:eventmesh-registry-api")
implementation project(":eventmesh-registry:eventmesh-registry-nacos")
implementation "com.alibaba.nacos:nacos-client"
implementation ("org.springframework.boot:spring-boot-starter-web") {
exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package com.apache.eventmesh.admin.server;

import com.apache.eventmesh.admin.server.registry.EventMeshAdminServerRegisterInfo;
import com.apache.eventmesh.admin.server.registry.RegistryService;
import com.apache.eventmesh.admin.server.task.Task;
import org.apache.eventmesh.common.utils.PagedList;
import org.apache.eventmesh.registry.RegistryService;

public class AdminServer implements Admin {

private RegistryService registryService;

private EventMeshAdminServerRegisterInfo registerInfo;
// private EventMeshAdminServerRegisterInfo registerInfo;

public AdminServer(RegistryService registryService, EventMeshAdminServerRegisterInfo registerInfo) {
public AdminServer(RegistryService registryService) {
this.registryService = registryService;
this.registerInfo = registerInfo;
// this.registerInfo = registerInfo;
}


Expand Down Expand Up @@ -44,13 +43,12 @@ public void reportHeartbeat(HeartBeat heartBeat) {

@Override
public void start() {

registryService.register(registerInfo);
registryService.register(null);
}

@Override
public void destroy() {
registryService.unRegister(registerInfo);
registryService.unRegister(null);
registryService.shutdown();
}
}

0 comments on commit 96baaeb

Please sign in to comment.