Permalink
Browse files

Upgrade Akka to 2.3.0-RC1

- Upgrade Akka to 2.3.0-RC1
- [Add parens to `sender` reference as recommended]
  (http://doc.akka.io/docs/akka/2.3.0-RC1/project/migration-guide-2.2.x-2.3.x.html#Parens_Added_to_sender)
  • Loading branch information...
1 parent 82ff526 commit bb5f838bb0798420f4bb853a3e459fdeb1439e09 @guersam guersam committed Jan 21, 2014
@@ -70,7 +70,7 @@ class MyActor extends Actor {
def receive = {
case s: String =>
println(s)
- sender ! "Hello, " + s
+ sender() ! "Hello, " + s
}
}
@@ -81,8 +81,8 @@ object Dependencies {
scalaIoFile,
- "com.typesafe.akka" %% "akka-actor" % "2.2.3",
- "com.typesafe.akka" %% "akka-slf4j" % "2.2.3",
+ "com.typesafe.akka" %% "akka-actor" % "2.3.0-RC1",
+ "com.typesafe.akka" %% "akka-slf4j" % "2.3.0-RC1",
"org.scala-stm" %% "scala-stm" % "0.7",
"commons-codec" % "commons-codec" % "1.9",
@@ -96,10 +96,10 @@ class ChatRoom extends Actor {
case Join(username) => {
if(members.contains(username)) {
- sender ! CannotConnect("This username is already used")
+ sender() ! CannotConnect("This username is already used")
} else {
members = members + username
- sender ! Connected(chatEnumerator)
+ sender() ! Connected(chatEnumerator)
self ! NotifyJoin(username)
}
}

0 comments on commit bb5f838

Please sign in to comment.