Permalink
Browse files

Renamed (*Environment)Transaction() to NewTransaction(*Environment)

  • Loading branch information...
1 parent 5e53a98 commit 59874d100eb96a70fa42b2c8d7d6809281f42fec @fd committed Feb 11, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 example/main.sx
  2. +1 −1 runtime/transaction.go
View
@@ -24,7 +24,7 @@ func main() {
go func() {
time.Sleep(5 * time.Second)
for {
- txn := runtime.Env.Transaction()
+ txn := runtime.NewTransaction(runtime.Env)
now := time.Now()
for i := 0; i < 5000; i++ {
txn.Set(posts, i, Post{
View
@@ -37,7 +37,7 @@ const (
UNSET
)
-func (env *Environment) Transaction() *Transaction {
+func NewTransaction(env *Environment) *Transaction {
txn := &Transaction{env: env}
txn_addr, err := env.GetCurrentTransaction()

0 comments on commit 59874d1

Please sign in to comment.