Permalink
Browse files

protoc-gen-micro was updated

  • Loading branch information...
asim committed Apr 25, 2018
1 parent cc94257 commit 9232d1793e2ebac1778c284c8c4c033d5e9daa64
Showing with 15 additions and 7 deletions.
  1. +13 −5 bot/proto/bot.micro.go
  2. +1 −1 internal/template/handler.go
  3. +1 −1 internal/template/wrapper.go
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -181,7 +181,7 @@ func ExampleCall(w http.ResponseWriter, r *http.Request) {
}
// call the backend service
exampleClient := example.ExampleServiceClient("go.micro.srv.template", client.DefaultClient)
exampleClient := example.NewExampleService("go.micro.srv.template", client.DefaultClient)
rsp, err := exampleClient.Call(context.TODO(), &example.Request{
Name: request["name"].(string),
})
@@ -21,7 +21,7 @@ func ExampleFromContext(ctx context.Context) (example.ExampleService, bool) {
// Client returns a wrapper for the ExampleClient
func ExampleWrapper(service micro.Service) server.HandlerWrapper {
client := example.ExampleServiceClient("go.micro.srv.template", service.Client())
client := example.NewExampleService("go.micro.srv.template", service.Client())
return func(fn server.HandlerFunc) server.HandlerFunc {
return func(ctx context.Context, req server.Request, rsp interface{}) error {

0 comments on commit 9232d17

Please sign in to comment.