move system view interface, grpc server, and client to stubs_oss files (#29291)

This commit is contained in:
Thy Ton
2025-01-10 10:11:45 -08:00
committed by GitHub
parent 8404d07264
commit bcd89f875d
7 changed files with 201 additions and 140 deletions

View File

@@ -231,9 +231,6 @@ func (b *backendGRPCPluginClient) Setup(ctx context.Context, config *logical.Bac
if b.metadataMode {
sysViewImpl = &logical.StaticSystemView{}
}
sysView := &gRPCSystemViewServer{
impl: sysViewImpl,
}
events := &GRPCEventsServer{
impl: config.EventsSender,
@@ -245,7 +242,7 @@ func (b *backendGRPCPluginClient) Setup(ctx context.Context, config *logical.Bac
opts = append(opts, grpc.MaxSendMsgSize(math.MaxInt32))
s := grpc.NewServer(opts...)
pb.RegisterSystemViewServer(s, sysView)
registerSystemViewServer(s, sysViewImpl, config)
pb.RegisterStorageServer(s, storage)
pb.RegisterEventsServer(s, events)
b.server.Store(s)