fix cartservice listen addr

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-27 22:21:26 -07:00
parent 4373f02025
commit 7c83802b9e
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

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