X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fe2_term_init_notification_handler.go;h=d11158b069411c8da11b02db955d427f2326f755;hb=197657e0e814c871b903ef779ad654b13347e430;hp=4aa403957cd5b7cdcba75e377947aa3e6114d93d;hpb=49144464f0450ce157a716010cbbd7c3143d332f;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go b/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go index 4aa4039..d11158b 100644 --- a/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go +++ b/E2Manager/handlers/rmrmsghandlers/e2_term_init_notification_handler.go @@ -17,7 +17,6 @@ // This source code is part of the near-RT RIC (RAN Intelligent Controller) // platform project (RICP). - package rmrmsghandlers import ( @@ -83,7 +82,7 @@ func (h E2TermInitNotificationHandler) Handle(request *models.NotificationReques return } - if e2tInstance.State == entities.ToBeDeleted{ + if e2tInstance.State == entities.ToBeDeleted { h.logger.Infof("#E2TermInitNotificationHandler.Handle - E2T Address: %s - E2T instance status is: %s, ignore", e2tInstance.Address, e2tInstance.State) return } @@ -98,7 +97,7 @@ func (h E2TermInitNotificationHandler) HandleExistingE2TInstance(e2tInstance *en for _, ranName := range e2tInstance.AssociatedRanList { if err := h.ranDisconnectionManager.DisconnectRan(ranName); err != nil { - if _, ok := err.(*common.ResourceNotFoundError); !ok{ + if _, ok := err.(*common.ResourceNotFoundError); !ok { break } } @@ -109,10 +108,10 @@ func (h E2TermInitNotificationHandler) HandleNewE2TInstance(e2tAddress string, p err := h.routingManagerClient.AddE2TInstance(e2tAddress) - if err != nil{ + if err != nil { h.logger.Errorf("#E2TermInitNotificationHandler.HandleNewE2TInstance - e2t address: %s - routing manager failure", e2tAddress) return } _ = h.e2tInstancesManager.AddE2TInstance(e2tAddress, podName) -} \ No newline at end of file +}