code: func (tr *Transaction) Discard() {
  	tr.lk.Lock()
  	if !tr.closed {
  		tr.discard()
  		tr.setDone()
  	}
  	tr.lk.Unlock()
  }
docs: // Discard discards the transaction.
  //
  // Other methods should not be called after transaction has been discarded.