fix enterprise endpoint registration (#15446)

In #15430 we refactored the RPC endpoint configuration to make adding the RPC
context easier. But when implementing the change on the Enterprise side, I
discovered that the registration of enterprise endpoints was being done
incorrectly -- this doesn't show up on OSS because the registration is always a
no-op here.
This commit is contained in:
Tim Gross
2022-12-01 10:44:33 -05:00
committed by GitHub
parent 4267b82b60
commit 117f71325f

View File

@@ -1282,7 +1282,8 @@ func (s *Server) setupRpcServer(server *rpc.Server, ctx *RPCContext) error {
_ = server.Register(NewSystemEndpoint(s, ctx))
_ = server.Register(NewVariablesEndpoint(s, ctx, s.encrypter))
_ = server.Register(NewEnterpriseEndpoints(s, ctx))
ent := NewEnterpriseEndpoints(s, ctx)
ent.Register(server)
return nil
}