mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fix: unable to start api
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user