From 7c83802b9e5fa663f4cd7924b8c94e13f80d5bb4 Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Wed, 27 Jun 2018 22:21:26 -0700 Subject: [PATCH] fix cartservice listen addr Signed-off-by: Ahmet Alp Balkan --- kubernetes-manifests/cartservice.yaml | 2 ++ src/frontend/rpc.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kubernetes-manifests/cartservice.yaml b/kubernetes-manifests/cartservice.yaml index 83cb82d..d7200e5 100644 --- a/kubernetes-manifests/cartservice.yaml +++ b/kubernetes-manifests/cartservice.yaml @@ -18,6 +18,8 @@ spec: value: "redis-cart:6379" - name: CART_SERVICE_PORT value: "7070" + - name: CART_SERVICE_ADDR + value: "127.0.0.1" resources: requests: cpu: 200m diff --git a/src/frontend/rpc.go b/src/frontend/rpc.go index 07f24a8..00657f3 100644 --- a/src/frontend/rpc.go +++ b/src/frontend/rpc.go @@ -77,7 +77,7 @@ func (fe *frontendServer) convertCurrency(ctx context.Context, money *pb.Money, } func (fe *frontendServer) getShippingQuote(ctx context.Context, items []*pb.CartItem, currency string) (*pb.Money, error) { - quote, err := pb.NewShippingServiceClient(fe.currencySvcConn).GetQuote(ctx, + quote, err := pb.NewShippingServiceClient(fe.shippingSvcConn).GetQuote(ctx, &pb.GetQuoteRequest{ Address: nil, Items: items})