fix cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
4373f02025
commit
7c83802b9e
2 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ spec:
|
||||||
value: "redis-cart:6379"
|
value: "redis-cart:6379"
|
||||||
- name: CART_SERVICE_PORT
|
- name: CART_SERVICE_PORT
|
||||||
value: "7070"
|
value: "7070"
|
||||||
|
- name: CART_SERVICE_ADDR
|
||||||
|
value: "127.0.0.1"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
|
|
|
@ -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) {
|
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{
|
&pb.GetQuoteRequest{
|
||||||
Address: nil,
|
Address: nil,
|
||||||
Items: items})
|
Items: items})
|
||||||
|
|
Loading…
Reference in a new issue