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})