RICPLT-2910
libe2ap library updated and moved to 3rdparty directory
e2ap_wrapper library to be used from go:
- message wrappers (used now only in tests)
- function wrappers that manipulates message
Go wrappers for messages
Initial unittest implementation.
Change-Id: Ie77cc2ae90b83b12e5c738e6f570fe4661961da6
Signed-off-by: Juha Hyttinen <juha.hyttinen@nokia.com>
diff --git a/pkg/control/registry.go b/pkg/control/registry.go
index 03e90ae..4f5c4fd 100644
--- a/pkg/control/registry.go
+++ b/pkg/control/registry.go
@@ -24,11 +24,10 @@
"sync"
)
-
type Registry struct {
register map[uint16]bool
counter uint16
- mutex sync.Mutex
+ mutex sync.Mutex
}
// This method should run as a constructor
@@ -44,7 +43,7 @@
defer r.mutex.Unlock()
sequenceNumber := r.counter
if _, ok := r.register[sequenceNumber]; ok {
- xapp.Logger.Error("Invalid SeqenceNumber sequenceNumber: %v",sequenceNumber)
+ xapp.Logger.Error("Invalid SeqenceNumber sequenceNumber: %v", sequenceNumber)
return sequenceNumber, false
}
r.register[sequenceNumber] = false