Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[RICPLT-2787] Add new e2t controller and GetE2TInstances API
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
rmrmsghandlers
/
ran_lost_connection_handler.go
diff --git
a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go
b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go
index
e6ba81e
..
61b1393
100644
(file)
--- a/
E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go
+++ b/
E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler.go
@@
-25,18
+25,20
@@
import (
type RanLostConnectionHandler struct {
ranReconnectionManager managers.IRanReconnectionManager
type RanLostConnectionHandler struct {
ranReconnectionManager managers.IRanReconnectionManager
+ logger *logger.Logger
}
}
-func NewRanLostConnectionHandler(ranReconnectionManager managers.IRanReconnectionManager) RanLostConnectionHandler {
+func NewRanLostConnectionHandler(
logger *logger.Logger,
ranReconnectionManager managers.IRanReconnectionManager) RanLostConnectionHandler {
return RanLostConnectionHandler{
return RanLostConnectionHandler{
+ logger: logger,
ranReconnectionManager: ranReconnectionManager,
}
}
ranReconnectionManager: ranReconnectionManager,
}
}
-func (h
andler RanLostConnectionHandler) Handle(logger *logger.Logger, request *models.NotificationRequest, messageChannel chan<- *models.NotificationResponse
) {
+func (h
RanLostConnectionHandler) Handle(request *models.NotificationRequest
) {
ranName := request.RanName
ranName := request.RanName
- logger.Warnf("#RanLostConnectionHandler.Handle - RAN name: %s - Received lost connection notification", ranName)
+
h.
logger.Warnf("#RanLostConnectionHandler.Handle - RAN name: %s - Received lost connection notification", ranName)
- _ = h
andler
.ranReconnectionManager.ReconnectRan(ranName)
+ _ = h.ranReconnectionManager.ReconnectRan(ranName)
}
}