fix: missing data source issue

This commit is contained in:
Marvin Zhang
2024-06-26 12:37:24 +08:00
parent 5daeccb87d
commit 326a8d67d0
18 changed files with 843 additions and 45 deletions

View File

@@ -36,9 +36,9 @@ type MasterServiceV2 struct {
schedulerSvc *scheduler.ServiceV2
handlerSvc *handler.ServiceV2
scheduleSvc *schedule.ServiceV2
notificationSvc *notification.Service
notificationSvc *notification.ServiceV2
spiderAdminSvc *admin.ServiceV2
systemSvc *system.Service
systemSvc *system.ServiceV2
// settings
cfgPath string
@@ -368,7 +368,7 @@ func NewMasterServiceV2() (res interfaces.NodeMasterService, err error) {
}
// notification service
svc.notificationSvc = notification.GetService()
svc.notificationSvc = notification.GetServiceV2()
// spider admin service
svc.spiderAdminSvc, err = admin.GetSpiderAdminServiceV2()
@@ -377,7 +377,7 @@ func NewMasterServiceV2() (res interfaces.NodeMasterService, err error) {
}
// system service
svc.systemSvc = system.GetService()
svc.systemSvc = system.GetServiceV2()
// init
if err := svc.Init(); err != nil {