Skip to content

Commit

Permalink
fix: unable to start api
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Nov 22, 2024
1 parent 534f66e commit 7a322ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/node/service/master_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -53,6 +50,9 @@ func (svc *MasterService) Start() {
panic(err)
}

// create indexes
go common.InitIndexes()

// start monitoring worker nodes
go svc.Monitor()

Expand Down

0 comments on commit 7a322ae

Please sign in to comment.