2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-04 07:00:50 +08:00

Add TestClose

Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
This commit is contained in:
Abhilash Gnan
2021-01-14 23:05:11 +01:00
committed by Soheil Hassas Yeganeh
parent ce11cfdf3a
commit cdd3331e3e
2 changed files with 33 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ import (
"golang.org/x/net/websocket"
"github.com/soheilhy/cmux"
"google.golang.org/grpc/examples/helloworld/helloworld"
grpchello "google.golang.org/grpc/examples/helloworld/helloworld"
)
@@ -86,7 +87,9 @@ func serveRPC(l net.Listener) {
}
}
type grpcServer struct{}
type grpcServer struct {
helloworld.UnimplementedGreeterServer
}
func (s *grpcServer) SayHello(ctx context.Context, in *grpchello.HelloRequest) (
*grpchello.HelloReply, error) {