X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fnotification_handler.go;h=6ec07204507b113cf1d3db26719603a45c3a5dc6;hb=c1bbdeaddf6d0d79b66fb55b346c6c6eb717e3d6;hp=a44b9651e4bb15ac5e4472eb390d30326cb504f2;hpb=1ec13d4076e7c7abefac6176462c1fee31229213;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/notification_handler.go b/E2Manager/handlers/rmrmsghandlers/notification_handler.go index a44b965..6ec0720 100644 --- a/E2Manager/handlers/rmrmsghandlers/notification_handler.go +++ b/E2Manager/handlers/rmrmsghandlers/notification_handler.go @@ -13,16 +13,24 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// + +// This source code is part of the near-RT RIC (RAN Intelligent Controller) +// platform project (RICP). + package rmrmsghandlers import ( "e2mgr/logger" "e2mgr/models" - "e2mgr/sessions" + "time" ) type NotificationHandler interface { - Handle(*logger.Logger, sessions.E2Sessions, *models.NotificationRequest, chan<- *models.NotificationResponse) + Handle(*models.NotificationRequest) +} + +//TODO: remove that +func printHandlingSetupResponseElapsedTimeInMs(logger *logger.Logger, msg string, startTime time.Time) { + logger.Infof("%s: %f ms", msg, float64(time.Since(startTime))/float64(time.Millisecond)) }