From 9f01eea0e2ea62ad76d06779bae03e372f1b93e1 Mon Sep 17 00:00:00 2001 From: Kujtim Date: Sat, 30 Sep 2017 01:24:05 +0200 Subject: [PATCH] Fix endpoint generator --- generator/generate_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(