X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fnotification_handler.go;h=ec1b8878aeb057da39ba31966f648138de57a510;hb=refs%2Ftags%2F2.0.10;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..ec1b887 100644 --- a/E2Manager/handlers/rmrmsghandlers/notification_handler.go +++ b/E2Manager/handlers/rmrmsghandlers/notification_handler.go @@ -20,9 +20,14 @@ 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)) }