code: func (tm *transactionManager) insert(trans *transaction) {
  	tm.Lock()
  	defer tm.Unlock()
  
  	tm.transactions.Set(trans.id, trans)
  	tm.index.Set(tm.genIndexKeyByTrans(trans), trans)
  }
docs: // insert adds a transaction to transactionManager.