2
0
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:
Soheil Hassas Yeganeh 2015-07-29 17:35:55 -04:00
parent 6194168d4e
commit 084f5e19e6

View File

@ -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.