-/*
-Retreives the transaction table entry for the given request.
-Returns error in case the transaction cannot be found.
-*/
-func (t *Tracker) RetriveTransaction(subID uint16, act Action) (*Transaction, error) {
- key := TransactionKey{subID, act}
- t.mutex.Lock()
- defer t.mutex.Unlock()
- if trans, ok := t.transactionTable[key]; ok {
- return trans, nil
- }
- err := fmt.Errorf("transaction record for Subscription ID %d and action %s does not exist", subID, act)
- return nil, err
-}
-
-/*
-Deletes the transaction table entry for the given request and returns the deleted xapp's address and port for reference.
-Returns error in case the transaction cannot be found.
-*/
-func (t *Tracker) completeTransaction(subID uint16, act Action) (*Transaction, error) {
- key := TransactionKey{subID, act}