From 4b7ef2e12622a43e4409ae6b0167e2ff7e201155 Mon Sep 17 00:00:00 2001 From: Qishuai Liu Date: Fri, 9 Jun 2023 11:18:14 +0900 Subject: [PATCH] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1f23a1e..357482d 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,9 @@ Add the following lines to your code: mixServer := grpcmix.NewServer(grpcmix.Config{ Port: 8080, ShutdownDelay: 2 * time.Second, - httpHandler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("add your http handler here, like prometheus metrics, health check, ...")) - }), -}) +}, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("add your http handler here, like prometheus metrics, health check, ...")) +})) // register your grpc services yourservicepb.RegisterYourServiceServer(mixServer, YourServiceImpl{})