transactional storage access has to be through lazy vals: changed in Redis test cases
This commit is contained in:
parent
398bff0142
commit
a99888cbc1
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue