Remove the 2nd RecvProto in the generated code for client streaming
This commit is contained in:
10
server.go
10
server.go
@ -43,10 +43,10 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/golang/protobuf/proto"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/metadata"
|
||||
"google.golang.org/grpc/transport"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type methodHandler func(srv interface{}, ctx context.Context, buf []byte) (proto.Message, error)
|
||||
@ -57,14 +57,6 @@ type MethodDesc struct {
|
||||
Handler methodHandler
|
||||
}
|
||||
|
||||
type streamHandler func(srv interface{}, stream ServerStream) error
|
||||
|
||||
// StreamDesc represents a streaming RPC service's method specification.
|
||||
type StreamDesc struct {
|
||||
StreamName string
|
||||
Handler streamHandler
|
||||
}
|
||||
|
||||
// ServiceDesc represents an RPC service's specification.
|
||||
type ServiceDesc struct {
|
||||
ServiceName string
|
||||
|
Reference in New Issue
Block a user