Rewritten "home" address management and protocol, all test pass except 2

This commit is contained in:
Jonas Bonér 2010-05-16 10:59:06 +02:00
parent dfc45e0a71
commit f7407d3adf
61 changed files with 668 additions and 866 deletions

View file

@ -16,19 +16,19 @@ class Subscriber(client: RedisClient) extends Actor {
def receive = {
case Subscribe(channels) =>
client.subscribe(channels.head, channels.tail: _*)(callback)
reply(true)
self.reply(true)
case Register(cb) =>
callback = cb
reply(true)
self.reply(true)
case Unsubscribe(channels) =>
client.unsubscribe(channels.head, channels.tail: _*)
reply(true)
self.reply(true)
case UnsubscribeAll =>
client.unsubscribe
reply(true)
self.reply(true)
}
}
@ -36,7 +36,7 @@ class Publisher(client: RedisClient) extends Actor {
def receive = {
case Publish(channel, message) =>
client.publish(channel, message)
reply(true)
self.reply(true)
}
}