proxy: add RegisterServiceDescs

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2025-04-14 09:34:15 +02:00
parent 8999dedd32
commit 533a0ea43a
2 changed files with 31 additions and 4 deletions

View File

@ -216,10 +216,8 @@ func (s *ProxyHappySuite) SetupSuite() {
grpc.CustomCodec(proxy.Codec()),
grpc.UnknownServiceHandler(proxy.TransparentHandler(director)),
)
// Ping handler is handled as an explicit registration and not as a TransparentHandler.
proxy.RegisterService(s.proxy, director,
"mwitkow.testproto.TestService",
"Ping")
proxy.RegisterServiceDescs(s.proxy, director, pb.TestService_ServiceDesc)
// Start the serving loops.
s.T().Logf("starting grpc.Server at: %v", s.serverListener.Addr().String())