X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Ftransaction.go;fp=pkg%2Fcontrol%2Ftransaction.go;h=735954ef713558923446a8b1d049ba9cdec73484;hb=12d31af1cdfcbf5f634d9cf666e8e174c74ecb27;hp=a0a260f5f20df41d76d0e830824d75c67a2c5df2;hpb=422d018f94aedd9f4c001176b5ff06c786de28eb;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/transaction.go b/pkg/control/transaction.go index a0a260f..735954e 100644 --- a/pkg/control/transaction.go +++ b/pkg/control/transaction.go @@ -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