Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(398)

Unified Diff: state/constraints.go

Issue 9175043: state: testable transactions
Patch Set: state: testable transactions Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/annotator.go ('k') | state/export_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/constraints.go
=== modified file 'state/constraints.go'
--- state/constraints.go 2013-05-30 00:47:30 +0000
+++ state/constraints.go 2013-06-13 07:59:07 +0000
@@ -75,7 +75,7 @@
func writeConstraints(st *State, id string, cons constraints.Value) error {
ops := []txn.Op{setConstraintsOp(st, id, cons)}
- if err := st.runner.Run(ops, "", nil); err != nil {
+ if err := st.runTransaction(ops); err != nil {
return fmt.Errorf("cannot set constraints: %v", err)
}
return nil
« no previous file with comments | « state/annotator.go ('k') | state/export_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b