Skip to content

Commit

Permalink
Merge pull request #3 from raisercostin/master
Browse files Browse the repository at this point in the history
bot depends now on Member and not ActorRef (fix compilation error)
  • Loading branch information
mandubian committed Aug 28, 2014
2 parents e7b2d36 + 9157994 commit 6852735
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/simplest/project/Build.scala
Expand Up @@ -13,7 +13,7 @@ object ApplicationBuild extends Build {
)

val appDependencies = Seq(
"org.mandubian" %% "play-actor-room" % "0.1"
"org.mandubian" %% "play-actor-room" % "0.2"
)

val main = play.Project(appName, appVersion, appDependencies).settings(
Expand Down
2 changes: 1 addition & 1 deletion samples/websocket-chat/project/Build.scala
Expand Up @@ -13,7 +13,7 @@ object ApplicationBuild extends Build {
)

val appDependencies = Seq(
"org.mandubian" %% "play-actor-room" % "0.1"
"org.mandubian" %% "play-actor-room" % "0.2"
)

val main = play.Project(appName, appVersion, appDependencies).settings(
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/room.scala
Expand Up @@ -166,7 +166,7 @@ class Room(supervisorProps: Props)(implicit app: Application) {

def bot[Payload](id: String)
(implicit msgFormatter: AdminMsgFormatter[Payload]): Future[Member] =
bot(id, Props[BotReceiver[Payload]])
bot(id, Props(classOf[BotSender[Payload]],msgFormatter))

def bot[Payload](
id: String,
Expand Down Expand Up @@ -275,7 +275,7 @@ class BotSender[Payload](implicit msgFormatter: AdminMsgFormatter[Payload]) exte
}

/** The default actor receiver for Bots */
class BotReceiver[Payload] extends Actor {
class BotReceiver[Payload](implicit msgFormatter: AdminMsgFormatter[Payload]) extends Actor {

def receive = {
case r: Received[Payload] =>
Expand Down

0 comments on commit 6852735

Please sign in to comment.