X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fregistry.go;h=0970a3aeb281f6a88b2b37df205741ea8af6b275;hb=refs%2Fchanges%2F17%2F2217%2F2;hp=2c5bd8c7d46e886e7d4b74eea1eae0f99d587ed7;hpb=8b979ab74153ad8c120743e0f6d868baedcb3b32;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/registry.go b/pkg/control/registry.go index 2c5bd8c..0970a3a 100644 --- a/pkg/control/registry.go +++ b/pkg/control/registry.go @@ -42,7 +42,7 @@ func (r *Registry) Initialize(seedsn uint16) { } // Reserves and returns the next free sequence number -func (r *Registry) ReserveSubscription(endPoint RmrEndpoint, meid *xapp.RMRMeid) (*Subscription, error) { +func (r *Registry) ReserveSubscription(endPoint *RmrEndpoint, meid *xapp.RMRMeid) (*Subscription, error) { // Check is current SequenceNumber valid // Allocate next SequenceNumber value and retry N times r.mutex.Lock() @@ -60,7 +60,7 @@ func (r *Registry) ReserveSubscription(endPoint RmrEndpoint, meid *xapp.RMRMeid) subs := &Subscription{ Seq: sequenceNumber, Active: false, - RmrEndpoint: endPoint, + RmrEndpoint: *endPoint, Meid: meid, Trans: nil, }