X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fregistry.go;h=f24dccdded23b9970abe238b272e89a61ee602e9;hb=refs%2Fchanges%2F06%2F2606%2F1;hp=9cacd9433333d8da7f528ad379097053533819b1;hpb=64a0df4d8518a2baf4521e69af4daab578bd6456;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/registry.go b/pkg/control/registry.go index 9cacd94..f24dccd 100644 --- a/pkg/control/registry.go +++ b/pkg/control/registry.go @@ -125,7 +125,7 @@ func (r *Registry) AssignToSubscription(trans *TransactionXapp, subReqMsg *e2ap. // Find possible existing Policy subscription // if actionType == e2ap.E2AP_ActionTypePolicy { - if subs, ok := r.register[subReqMsg.RequestId.Seq]; ok { + if subs, ok := r.register[trans.GetSubId()]; ok { xapp.Logger.Debug("CREATE %s. Existing subscription for Policy found", subs.String()) subs.SetCachedResponse(nil, true) return subs, nil