Codebase list golang-github-go-kit-kit / 6c91893
Fix bad merge Peter Bourgon 8 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1919 // service.
2020 func proxyAdd(remote endpoint.Endpoint, logger log.Logger) Add {
2121 return func(ctx context.Context, a, b int64) int64 {
22 resp, err := e(ctx, reqrep.AddRequest{A: a, B: b})
22 resp, err := remote(ctx, reqrep.AddRequest{A: a, B: b})
2323 if err != nil {
2424 logger.Log("err", err)
2525 return 0
108108
109109 // Our business and operational domain
110110 var a Add = pureAdd
111 if *proxyHTTPAddr != "" {
111 if *proxyHTTPURL != "" {
112112 var e endpoint.Endpoint
113 e = httpclient.NewClient("GET", *proxyHTTPAddr, zipkin.ToRequest(zipkinSpanFunc))
113 e = httpclient.NewClient("GET", *proxyHTTPURL, zipkin.ToRequest(zipkinSpanFunc))
114114 e = zipkin.AnnotateClient(zipkinSpanFunc, zipkinCollector)(e)
115115 a = proxyAdd(e, logger)
116116 }