From 8e92bd8567b57b94ddb921d3c8189d4075f34a9e Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 10 Jan 2019 22:12:43 +0000 Subject: [PATCH] update breaks --- hystrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hystrix.go b/hystrix.go index 64a3f2a..8813295 100644 --- a/hystrix.go +++ b/hystrix.go @@ -12,7 +12,7 @@ type clientWrapper struct { } func (c *clientWrapper) Call(ctx context.Context, req client.Request, rsp interface{}, opts ...client.CallOption) error { - return hystrix.Do(req.Service()+"."+req.Method(), func() error { + return hystrix.Do(req.Service()+"."+req.Endpoint(), func() error { return c.Client.Call(ctx, req, rsp, opts...) }, nil) }