Correction multi-T-Cont flow handling: wait for related TechProfile config
Signed-off-by: mpagenko <michael.pagenkopf@adtran.com>
Change-Id: I164b1fdbd9f2bfe7b941b30def75040fae3fa7eb
diff --git a/cmd/openonu-adapter/profile.go b/cmd/openonu-adapter/profile.go
index f539afd..a093ee8 100644
--- a/cmd/openonu-adapter/profile.go
+++ b/cmd/openonu-adapter/profile.go
@@ -19,13 +19,14 @@
package main
import (
+ "context"
"net/http"
_ "net/http/pprof"
)
-func realMain() {
+func realMain(ctx context.Context) {
go func() {
- logger.Fatal(http.ListenAndServe("0.0.0.0:6060", nil))
+ logger.Fatal(ctx, http.ListenAndServe("0.0.0.0:6060", nil))
}()
}