refactor: updated index related code

This commit is contained in:
Marvin Zhang
2024-10-29 13:18:57 +08:00
parent abaaa9b7f7
commit 7cabe4b6ac
5 changed files with 220 additions and 284 deletions

View File

@@ -50,7 +50,7 @@ func (svc *MasterServiceV2) Init() (err error) {
func (svc *MasterServiceV2) Start() {
// create indexes
common.CreateIndexesV2()
common.InitIndexes()
// start grpc server
if err := svc.server.Start(); err != nil {
@@ -390,5 +390,4 @@ func GetMasterServiceV2() (res *MasterServiceV2, err error) {
}
})
return masterServiceV2, err
}