Refactoring for coreServer #No change in processing logic
Change-Id: Iea4d9ef4e6288b919c7e5796bbb9bc7f87ac604e
diff --git a/core/omci.go b/core/omci.go
index 6a55416..87d2f70 100644
--- a/core/omci.go
+++ b/core/omci.go
@@ -64,8 +64,8 @@
var OnuOmciStateMap = map[OnuKey]*OnuOmciState{}
-func OmciRun(ctx context.Context, omciOut chan openolt.OmciMsg, omciIn chan openolt.OmciIndication, onumap map[uint32][]*device.Onu, errch chan error) {
- go func() { //For monitoring the OMCI states
+func RunOmciResponder(ctx context.Context, omciOut chan openolt.OmciMsg, omciIn chan openolt.OmciIndication, onumap map[uint32][] *device.Onu, errch chan error) {
+ go func() { //For monitoring the OMCI states TODO: This part should be eliminated because it is out of scope of this library
t := time.NewTicker(1 * time.Second)
defer t.Stop()
for {