区分社区版和商业版

This commit is contained in:
刘祥超
2021-07-25 15:46:12 +08:00
parent 5fffc8a833
commit 3fbad22218
5 changed files with 13 additions and 8 deletions

View File

@@ -393,11 +393,6 @@ func (this *APINode) registerServices(server *grpc.Server) {
pb.RegisterMonitorNodeServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.AuthorityKeyService{}).(*services.AuthorityKeyService)
pb.RegisterAuthorityKeyServiceServer(server, instance)
this.rest(instance)
}
{
instance := this.serviceInstance(&services.AuthorityNodeService{}).(*services.AuthorityNodeService)
pb.RegisterAuthorityNodeServiceServer(server, instance)
@@ -501,6 +496,8 @@ func (this *APINode) registerServices(server *grpc.Server) {
this.rest(instance)
}
APINodeServicesRegister(this, server)
// TODO check service names
for serviceName := range server.GetServiceInfo() {
index := strings.LastIndex(serviceName, ".")