Skip to content

Commit

Permalink
fixed an oops, return value overwriting error
Browse files Browse the repository at this point in the history
  • Loading branch information
argouber committed Nov 2, 2019
1 parent 1b1e8bc commit 4932af0
Show file tree
Hide file tree
Showing 11 changed files with 76 additions and 76 deletions.
8 changes: 4 additions & 4 deletions codegen/template_bundle/template_files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codegen/templates/http_client.tmpl
Expand Up @@ -238,7 +238,7 @@ func (c *{{$clientName}}) {{$methodName}}(
if (c.circuitBreakerDisabled) {
res, err = req.Do()
} else {
err = hystrix.DoC(ctx, "{{$clientID}}", func(ctx context.Context) error {
hystrix.DoC(ctx, "{{$clientID}}", func(ctx context.Context) error {
res, err = req.Do()
if res.StatusCode < 500 {
return nil
Expand Down
2 changes: 1 addition & 1 deletion codegen/templates/tchannel_client.tmpl
Expand Up @@ -264,7 +264,7 @@ type {{$clientName}} struct {
ctx, "{{$svc.Name}}", "{{.Name}}", reqHeaders, args, &result,
)
} else {
err = hystrix.DoC(ctx, "{{$clientID}}", func(ctx context.Context) error {
hystrix.DoC(ctx, "{{$clientID}}", func(ctx context.Context) error {
success, respHeaders, err = c.client.Call(
ctx, "{{$svc.Name}}", "{{.Name}}", reqHeaders, args, &result,
)
Expand Down
68 changes: 34 additions & 34 deletions examples/example-gateway/build/clients/bar/bar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4932af0

Please sign in to comment.