Skip to content

Commit

Permalink
Woops, syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-scott committed Aug 8, 2015
1 parent 6f15bcf commit e5eee3d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -14,8 +14,8 @@ import pl.project13.scala.akka.raft.{StableClusterConfiguration, JointConsensusC
*/
case class LogIndexMap private (private var backing: Map[ActorRef, Int], private val initializeWith: Int) {

def decrementFor(member: ActorRef): Int = backing(member) match {
val value = n - 1
def decrementFor(member: ActorRef): Int = {
val value = backing(member) - 1
backing = backing.updated(member, value)
value
}
Expand Down

0 comments on commit e5eee3d

Please sign in to comment.