[VOL-3187]Pass Context down the execution call hierarchy across ofagent codebase
Change-Id: Ia5f2fa1509beefe0ddc427b83e39d2702782db8f
diff --git a/cmd/ofagent/profile.go b/cmd/ofagent/profile.go
index f539afd..73d05f8 100644
--- a/cmd/ofagent/profile.go
+++ b/cmd/ofagent/profile.go
@@ -19,13 +19,15 @@
package main
import (
+ "context"
"net/http"
_ "net/http/pprof"
)
func realMain() {
go func() {
- logger.Fatal(http.ListenAndServe("0.0.0.0:6060", nil))
+ ctx := context.Background()
+ logger.Fatal(ctx, http.ListenAndServe("0.0.0.0:6060", nil))
}()
}