From 6ee2d710556ef69ed11c5bf7120a3b045791e0f7 Mon Sep 17 00:00:00 2001 From: Mark Sanders Date: Thu, 7 Nov 2024 16:41:51 -0600 Subject: [PATCH] feat(cond-bridge): cleanup basic conditional operation Signed-off-by: Mark Sanders --- Cond-bridge/Makefile | 1 - Cond-bridge/cmd/main.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cond-bridge/Makefile b/Cond-bridge/Makefile index 16eb7e2..cc20b99 100644 --- a/Cond-bridge/Makefile +++ b/Cond-bridge/Makefile @@ -1,5 +1,4 @@ # SPDX-License-Identifier: Apache-2.0 -# Copyright (c) 2023 Dell Inc, or its subsidiaries. ROOT_DIR='.' PROJECTNAME=$(shell basename "$(PWD)") diff --git a/Cond-bridge/cmd/main.go b/Cond-bridge/cmd/main.go index b6f9fc4..193429f 100644 --- a/Cond-bridge/cmd/main.go +++ b/Cond-bridge/cmd/main.go @@ -70,6 +70,7 @@ func runGrpcServer(grpcPort int) { s := grpc.NewServer() inventory.RegisterInventorytoGrpc(s) + frontend.RegisterStoragetoGrpc(s) reflection.Register(s) log.Printf("gRPC Server listening at %v", lis.Addr()) @@ -89,6 +90,7 @@ func runGatewayServer(grpcPort int, httpPort int) { opts := []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())} endpoint := fmt.Sprintf("localhost:%d", grpcPort) inventory.RegisterInventorytoGateway(ctx, mux, endpoint, opts) + frontend.RegisterStoragetoGateway(ctx, mux, endpoint, opts) // Start HTTP server (and proxy calls to gRPC server endpoint)