diff --git a/src/checkoutservice/main.go b/src/checkoutservice/main.go index af0e36e..8ba4b8b 100644 --- a/src/checkoutservice/main.go +++ b/src/checkoutservice/main.go @@ -193,7 +193,7 @@ func (cs *checkoutService) Check(ctx context.Context, req *healthpb.HealthCheckR } func (cs *checkoutService) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { - return nil + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") } func (cs *checkoutService) PlaceOrder(ctx context.Context, req *pb.PlaceOrderRequest) (*pb.PlaceOrderResponse, error) { diff --git a/src/productcatalogservice/productcatalogservice b/src/productcatalogservice/productcatalogservice deleted file mode 100755 index 68ffc5a..0000000 Binary files a/src/productcatalogservice/productcatalogservice and /dev/null differ diff --git a/src/productcatalogservice/server.go b/src/productcatalogservice/server.go index 577fd15..ab39d70 100644 --- a/src/productcatalogservice/server.go +++ b/src/productcatalogservice/server.go @@ -241,7 +241,7 @@ func (p *productCatalog) Check(ctx context.Context, req *healthpb.HealthCheckReq } func (p *productCatalog) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { - return nil + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") } func (p *productCatalog) ListProducts(context.Context, *pb.Empty) (*pb.ListProductsResponse, error) { diff --git a/src/shippingservice/main.go b/src/shippingservice/main.go index 46f2881..5523a71 100644 --- a/src/shippingservice/main.go +++ b/src/shippingservice/main.go @@ -91,7 +91,7 @@ func (s *server) Check(ctx context.Context, req *healthpb.HealthCheckRequest) (* } func (s *server) Watch(req *healthpb.HealthCheckRequest, ws healthpb.Health_WatchServer) error { - return nil + return status.Errorf(codes.Unimplemented, "health check via Watch not implemented") } // GetQuote produces a shipping quote (cost) in USD.