[VOL-3069] Fix for the profile enabled openolt adapter docker container build issue
Change-Id: I31b0afbfb6676fee69e504276c7c616b4101c0e0
diff --git a/cmd/openolt-adapter/profile.go b/cmd/openolt-adapter/profile.go
index 98e3ac0..f0b8e1f 100644
--- a/cmd/openolt-adapter/profile.go
+++ b/cmd/openolt-adapter/profile.go
@@ -19,13 +19,14 @@
package main
import (
+ "context"
"net/http"
_ "net/http/pprof"
)
func realMain() {
go func() {
- logger.Fatal(ctx, http.ListenAndServe("0.0.0.0:6060", nil))
+ logger.Fatal(context.Background(), http.ListenAndServe("0.0.0.0:6060", nil))
}()
}