RICPLT-2989 Submgr routing manager client code to support multiple endpoints
[ric-plt/submgr.git] / pkg / control / transaction.go
index a0a260f..735954e 100644 (file)
@@ -109,7 +109,7 @@ type Transaction struct {
        XappKey         *TransactionXappKey //
 }
 
-func (t *Transaction) StringImpl() string {
+func (t *Transaction) String() string {
        var transkey string = "transkey(N/A)"
        if t.XappKey != nil {
                transkey = t.XappKey.String()
@@ -117,12 +117,6 @@ func (t *Transaction) StringImpl() string {
        return "trans(" + strconv.FormatUint(uint64(t.Seq), 10) + "/" + t.Meid.RanName + "/" + transkey + ")"
 }
 
-func (t *Transaction) String() string {
-       t.mutex.Lock()
-       defer t.mutex.Unlock()
-       return t.StringImpl()
-}
-
 func (t *Transaction) GetEndpoint() *RmrEndpoint {
        t.mutex.Lock()
        defer t.mutex.Unlock()
@@ -152,7 +146,7 @@ func (t *Transaction) GetSrc() string {
 
 func (t *Transaction) Release() {
        t.mutex.Lock()
-       xapp.Logger.Debug("Transaction: Release %s", t.StringImpl())
+       xapp.Logger.Debug("Transaction: Release %s", t.String())
        tracker := t.tracker
        xappkey := t.XappKey
        t.tracker = nil