Code Review
/
ric-plt
/
submgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
move rmrendpoint into xapptweaks pkg
[ric-plt/submgr.git]
/
pkg
/
control
/
transaction.go
diff --git
a/pkg/control/transaction.go
b/pkg/control/transaction.go
index
56dff1d
..
d922d18
100644
(file)
--- a/
pkg/control/transaction.go
+++ b/
pkg/control/transaction.go
@@
-21,6
+21,7
@@
package control
import (
"gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap"
import (
"gerrit.o-ran-sc.org/r/ric-plt/e2ap/pkg/e2ap"
+ "gerrit.o-ran-sc.org/r/ric-plt/submgr/pkg/xapptweaks"
"gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
"strconv"
"sync"
"gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/xapp"
"strconv"
"sync"
@@
-52,7
+53,7
@@
type Transaction struct {
}
func (t *Transaction) String() string {
}
func (t *Transaction) String() string {
- return "trans(" + strconv.FormatUint(uint64(t.Seq), 10) + "/" +
t.Meid.RanName
+ ")"
+ return "trans(" + strconv.FormatUint(uint64(t.Seq), 10) + "/" +
(&xapptweaks.RMRMeid{t.Meid}).String()
+ ")"
}
func (t *Transaction) SendEvent(event interface{}, waittime time.Duration) (bool, bool) {
}
func (t *Transaction) SendEvent(event interface{}, waittime time.Duration) (bool, bool) {
@@
-125,7
+126,7
@@
func (t *TransactionSubs) Release() {
//
//-----------------------------------------------------------------------------
type TransactionXappKey struct {
//
//-----------------------------------------------------------------------------
type TransactionXappKey struct {
- RmrEndpoint
+
xapptweaks.
RmrEndpoint
Xid string // xapp xid in req
}
Xid string // xapp xid in req
}
@@
-150,7
+151,7
@@
func (t *TransactionXapp) String() string {
return "transxapp(" + t.Transaction.String() + "/" + transkey + "/" + strconv.FormatUint(uint64(t.SubId), 10) + ")"
}
return "transxapp(" + t.Transaction.String() + "/" + transkey + "/" + strconv.FormatUint(uint64(t.SubId), 10) + ")"
}
-func (t *TransactionXapp) GetEndpoint() *RmrEndpoint {
+func (t *TransactionXapp) GetEndpoint() *
xapptweaks.
RmrEndpoint {
t.mutex.Lock()
defer t.mutex.Unlock()
if t.XappKey != nil {
t.mutex.Lock()
defer t.mutex.Unlock()
if t.XappKey != nil {