mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
refactor: code cleanup
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user