diff --git a/generator/generate_service.go b/generator/generate_service.go index 2bd4ab5..ac2e53f 100644 --- a/generator/generate_service.go +++ b/generator/generate_service.go @@ -659,7 +659,7 @@ func (g *generateServiceEndpoints) generateEndpointsClientMethods() { body := []jen.Code{ jen.Id(rqName).Op(":=").Id(m.Name + "Request").Values(req), jen.List(jen.Id(rpName), jen.Err()).Op(":=").Id(stp).Dot(m.Name + "Endpoint").Call( - jen.List(jen.Id(ctxN), jen.Id(rpName)), + jen.List(jen.Id(ctxN), jen.Id(rqName)), ), jen.If( jen.Err().Op("!=").Nil().Block(