mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-10 11:41:52 +08:00
commit
f671b41193
@ -32,7 +32,7 @@ httpS := &http.Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
trpcS := rpc.NewServer()
|
trpcS := rpc.NewServer()
|
||||||
s.Register(&ExampleRPCRcvr{})
|
trpcS.Register(&ExampleRPCRcvr{})
|
||||||
|
|
||||||
// Use the muxed listeners for your servers.
|
// Use the muxed listeners for your servers.
|
||||||
go grpcS.Serve(grpcL)
|
go grpcS.Serve(grpcL)
|
||||||
|
Loading…
Reference in New Issue
Block a user