2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-09-20 02:55:46 +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.
grpcS := grpc.NewServer()
grpchello.RegisterGreeterServer(grpcs, &server{})
grpchello.RegisterGreeterServer(grpcS, &server{})
httpS := &http.Server{
Handler: &helloHTTP1Handler{},