diff options
author | Ritu Sood <Ritu.Sood@intel.com> | 2020-05-02 00:35:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-02 00:35:32 +0000 |
commit | 2ccdeb2e6eeda78e214fa55fee4e3057e89f54c4 (patch) | |
tree | b927ddba660609f4460fd0ed981fe115e85be1b3 /src/orchestrator/cmd/main.go | |
parent | 17db22b1ed8c1ed8e0b524f6c4a4b9fae35e0a4f (diff) | |
parent | ea7b430a700a12cbde9e78acb3a993ad4257b12c (diff) |
Merge "Add gRPC framework to orchestrator"
Diffstat (limited to 'src/orchestrator/cmd/main.go')
-rw-r--r-- | src/orchestrator/cmd/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/orchestrator/cmd/main.go b/src/orchestrator/cmd/main.go index 001903a7..7f258bbf 100644 --- a/src/orchestrator/cmd/main.go +++ b/src/orchestrator/cmd/main.go @@ -28,6 +28,8 @@ import ( "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/config" contextDb "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/contextdb" "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/db" + "github.com/onap/multicloud-k8s/src/orchestrator/pkg/infra/rpc" + "github.com/onap/multicloud-k8s/src/orchestrator/pkg/module" ) func main() { @@ -56,12 +58,15 @@ func main() { Addr: ":" + config.GetConfiguration().ServicePort, } + module.NewControllerClient().InitControllers() + connectionsClose := make(chan struct{}) go func() { c := make(chan os.Signal, 1) signal.Notify(c, os.Interrupt) <-c httpServer.Shutdown(context.Background()) + rpc.CloseAllRpcConn() close(connectionsClose) }() |