fix: unable to start api

This commit is contained in:
Marvin Zhang
2024-11-22 20:58:01 +08:00
parent 534f66eabf
commit 7a322ae6c8

View File

@@ -40,9 +40,6 @@ type MasterService struct {
}
func (svc *MasterService) Start() {
// create indexes
common.InitIndexes()
// start grpc server
if err := svc.server.Start(); err != nil {
panic(err)
@@ -53,6 +50,9 @@ func (svc *MasterService) Start() {
panic(err)
}
// create indexes
go common.InitIndexes()
// start monitoring worker nodes
go svc.Monitor()