merge of Natalia - change rnib errors
[ric-plt/e2mgr.git] / E2Manager / handlers / ran_lost_connection_handler.go
index 980c867..e899202 100644 (file)
@@ -35,19 +35,9 @@ func NewRanLostConnectionHandler(ranReconnectionManager managers.IRanReconnectio
 }
 func (handler RanLostConnectionHandler) Handle(logger *logger.Logger, e2Sessions sessions.E2Sessions, request *models.NotificationRequest, messageChannel chan<- *models.NotificationResponse) {
 
-       ranName := request.TransactionId
-
-       // TODO: check with E2T dev why does request.RanName (MEID) does not contain the ran name (in case sim is down)
-       if len(request.RanName) > 0 {
-               ranName = request.RanName
-       }
+       ranName := request.RanName
 
        logger.Warnf("#RanLostConnectionHandler.Handle - RAN name: %s - Received lost connection notification", ranName)
 
-       err := handler.ranReconnectionManager.ReconnectRan(ranName)
-
-       if err != nil {
-               logger.Errorf("#RanLostConnectionHandler.Handle - An error occurred while trying to reconnect RAN, %v", err)
-               return
-       }
+       _ = handler.ranReconnectionManager.ReconnectRan(ranName)
 }