transactional storage access has to be through lazy vals: changed in Redis test cases

This commit is contained in:
Debasish Ghosh 2010-02-19 17:45:44 +05:30
parent 398bff0142
commit a99888cbc1
2 changed files with 3 additions and 3 deletions

View file

@ -27,8 +27,8 @@ case class Credit(accountNo: String, amount: BigInt)
case object LogSize
class AccountActor extends Transactor {
private val accountState = RedisStorage.newMap
private val txnLog = RedisStorage.newVector
private lazy val accountState = RedisStorage.newMap
private lazy val txnLog = RedisStorage.newVector
def receive = {
// check balance