diff options
author | lukechampine <luke.champine@gmail.com> | 2016-03-29 23:49:50 -0400 |
---|---|---|
committer | lukechampine <luke.champine@gmail.com> | 2016-03-29 23:49:50 -0400 |
commit | cb6cf9ef3c67a46477c7ab7a7fe3fb032bbe0840 (patch) | |
tree | 0d5fa725f7a802e0bc5eda92fa19ad85cbf2f7e9 | |
parent | replace OrElse with Select (diff) | |
download | stm-cb6cf9ef3c67a46477c7ab7a7fe3fb032bbe0840.tar.gz stm-cb6cf9ef3c67a46477c7ab7a7fe3fb032bbe0840.tar.xz |
rename Check -> Assert
-rw-r--r-- | stm.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -149,9 +149,9 @@ func (tx *Tx) Retry() { panic(Retry) } -// Check is a helper function that retries a transaction if the condition is +// Assert is a helper function that retries a transaction if the condition is // not satisfied. -func (tx *Tx) Check(p bool) { +func (tx *Tx) Assert(p bool) { if !p { tx.Retry() } |