mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
proxy: add RegisterServiceDescs
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user