mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-10 03:31:52 +08:00
Nit in README
This commit is contained in:
parent
6194168d4e
commit
084f5e19e6
@ -24,10 +24,10 @@ httpL := 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()
|
||||||
pb.RegisterGreeterServer(grpcs, &server{})
|
grpchello.RegisterGreeterServer(grpcs, &server{})
|
||||||
|
|
||||||
httpS := &http.Server{
|
httpS := &http.Server{
|
||||||
Handler: &testHTTP1Handler{},
|
Handler: &helloHTTP1Handler{},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use the muxed listeners for your servers.
|
// Use the muxed listeners for your servers.
|
||||||
|
Loading…
Reference in New Issue
Block a user