mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-10 03:31:52 +08:00
Fix README.md example code
This commit is contained in:
parent
e09e9389d8
commit
f7603f4e1c
@ -25,7 +25,7 @@ trpcL := m.Match(cmux.Any()) // Any means anything that is not yet matched.
|
|||||||
|
|
||||||
// Create your protocol servers.
|
// Create your protocol servers.
|
||||||
grpcS := grpc.NewServer()
|
grpcS := grpc.NewServer()
|
||||||
grpchello.RegisterGreeterServer(grpcs, &server{})
|
grpchello.RegisterGreeterServer(grpcS, &server{})
|
||||||
|
|
||||||
httpS := &http.Server{
|
httpS := &http.Server{
|
||||||
Handler: &helloHTTP1Handler{},
|
Handler: &helloHTTP1Handler{},
|
||||||
|
Loading…
Reference in New Issue
Block a user