2
0
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:
Alan D. Cabrera 2018-05-16 11:19:32 -07:00 committed by Soheil Hassas Yeganeh
parent e09e9389d8
commit f7603f4e1c

View File

@ -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{},