2
0
mirror of https://github.com/soheilhy/cmux.git synced 2025-01-18 18:56:26 +08:00

Nit in README

Make capitalizations consistent.
This commit is contained in:
Soheil Hassas Yeganeh 2015-07-29 14:02:24 -04:00
parent 2863fc463a
commit ea0a73f55e

View File

@ -19,8 +19,8 @@ if err != nil {
m := cmux.New(l)
// Match connections in order.
grpcl := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc"))
httpl := m.Match(cmux.Any()) // Any means anything that is not yet matched.
grpcL := m.Match(cmux.HTTP2HeaderField("content-type", "application/grpc"))
httpL := m.Match(cmux.Any()) // Any means anything that is not yet matched.
// Create your protocol servers.
grpcS := grpc.NewServer()
@ -31,8 +31,8 @@ httpS := &http.Server{
}
// Use the muxed listeners for your servers.
go grpcS.Serve(grpcl)
go httpS.Serve(httpl)
go grpcS.Serve(grpcL)
go httpS.Serve(httpL)
// Start serving!
m.Serve()