mirror of https://github.com/grpc/grpc-go.git
remove dead code
This commit is contained in:
parent
ef43a528c1
commit
a27bb5b14a
|
@ -421,7 +421,6 @@ func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer) {
|
|||
|
||||
func _TestService_UnaryCall_Handler(srv interface{}, ctx context.Context, decodeFunc func([]byte, interface{}) error, buf []byte) (interface{}, error) {
|
||||
in := new(SimpleRequest)
|
||||
//if err := codec.Unmarshal(buf, in); err != nil {
|
||||
if err := decodeFunc(buf, in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -320,11 +320,6 @@ func (s *Server) processUnaryRPC(t transport.ServerTransport, stream *transport.
|
|||
}
|
||||
return err
|
||||
}
|
||||
//if traceInfo.tr != nil {
|
||||
// TODO: set payload.msg to something that
|
||||
// prints usefully with %s; req is a []byte.
|
||||
//traceInfo.tr.LazyLog(&payload{sent: false}, true)
|
||||
//}
|
||||
switch pf {
|
||||
case compressionNone:
|
||||
statusCode := codes.OK
|
||||
|
|
Loading…
Reference in New Issue