()
| 50 | } |
| 51 | |
| 52 | func (txn *txnLeasing) Commit() (*v3.TxnResponse, error) { |
| 53 | if resp, err := txn.eval(); resp != nil || err != nil { |
| 54 | return resp, err |
| 55 | } |
| 56 | return txn.serverTxn() |
| 57 | } |
| 58 | |
| 59 | func (txn *txnLeasing) eval() (*v3.TxnResponse, error) { |
| 60 | // TODO: wait on keys in comparisons |