Skip to content

Commit

Permalink
Conversion should be in terms of Source
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Nov 1, 2008
1 parent 3bb7aeb commit a4d2a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/codecommit/stm/Transaction.scala
Expand Up @@ -65,7 +65,7 @@ object Transaction {
back
}

implicit def refToValue[T](ref: Ref[T])(implicit c: Context) = ref.get(c)
implicit def sourceToValue[T](src: Source[T])(implicit c: Context) = src.get(c)

def atomic[A](f: (Transaction)=>A): A = atomic(true)(f)

Expand Down

0 comments on commit a4d2a8a

Please sign in to comment.