Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lqs authored Jun 9, 2023
1 parent 86693d8 commit 4b7ef2e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
Expand Down

0 comments on commit 4b7ef2e

Please sign in to comment.