refactor: code cleanup

This commit is contained in:
Marvin Zhang
2024-10-29 12:59:45 +08:00
parent 967f41d73a
commit abaaa9b7f7
31 changed files with 232 additions and 2327 deletions

View File

@@ -87,6 +87,7 @@ func (svc *MasterServiceV2) Wait() {
func (svc *MasterServiceV2) Stop() {
_ = svc.server.Stop()
svc.handlerSvc.Stop()
log.Infof("master[%s] service has stopped", svc.GetConfigService().GetNodeKey())
}

View File

@@ -71,6 +71,7 @@ func (svc *WorkerServiceV2) Wait() {
func (svc *WorkerServiceV2) Stop() {
_ = svc.client.Stop()
svc.handlerSvc.Stop()
log.Infof("worker[%s] service has stopped", svc.cfgSvc.GetNodeKey())
}