删除没必要的服务

This commit is contained in:
huangsimin@fusen.cn 2023-12-20 10:28:40 +08:00
parent ab2cdf5921
commit 2ff371bbb9
2 changed files with 3 additions and 1 deletions

View File

@ -949,7 +949,9 @@ func getAllServiceName() (result []string) {
panic(err)
}
for _, e := range dirEntrys {
result = append(result, e.Name()[0:len(e.Name())-6])
if filepath.Ext(e.Name()) == ".proto" {
result = append(result, e.Name()[0:len(e.Name())-6])
}
}
return
}