From 7ad2c3798071b94109440a36012c314a2558d678 Mon Sep 17 00:00:00 2001 From: Kalya Subramanian Date: Fri, 5 Mar 2021 14:20:32 -0800 Subject: [PATCH] update Signed-off-by: Kalya Subramanian --- demo/cmd/common/books.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/cmd/common/books.go b/demo/cmd/common/books.go index 0cd81b22a7..3083b7c52f 100644 --- a/demo/cmd/common/books.go +++ b/demo/cmd/common/books.go @@ -21,6 +21,9 @@ const ( // bookstorePort is the bookstore service's port bookstorePort = 14001 + // bookwarehousePort is the bookwarehouse service's port + bookwarehousePort = 14001 + httpPrefix = "http://" httpsPrefix = "https://" @@ -38,8 +41,8 @@ var ( warehouseServiceName = "bookwarehouse" bookwarehouseNamespace = os.Getenv(BookwarehouseNamespaceEnvVar) - bookstoreService = fmt.Sprintf("%s.%s:%d", bookstoreServiceName, bookstoreNamespace, bookstorePort) // FQDN - warehouseService = fmt.Sprintf("%s.%s", warehouseServiceName, bookwarehouseNamespace) // FQDN + bookstoreService = fmt.Sprintf("%s.%s:%d", bookstoreServiceName, bookstoreNamespace, bookstorePort) // FQDN + warehouseService = fmt.Sprintf("%s.%s:%d", warehouseServiceName, bookwarehouseNamespace, bookwarehousePort) // FQDN booksBought = fmt.Sprintf("http://%s/books-bought", bookstoreService) buyBook = fmt.Sprintf("http://%s/buy-a-book/new", bookstoreService) chargeAccountURL = fmt.Sprintf("http://%s/%s", warehouseService, RestockWarehouseURL)