Skip to content

Commit

Permalink
feat(cond-bridge): cleanup basic conditional operation
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sanders <marksanders194@gmail.com>
  • Loading branch information
sandersms committed Nov 7, 2024
1 parent cf97aeb commit 6ee2d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion Cond-bridge/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2023 Dell Inc, or its subsidiaries.

ROOT_DIR='.'
PROJECTNAME=$(shell basename "$(PWD)")
Expand Down
2 changes: 2 additions & 0 deletions Cond-bridge/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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)
Expand Down

0 comments on commit 6ee2d71

Please sign in to comment.