fix for issue #480 Regression multibulk replies redis client with a new version of redisclient
This commit is contained in:
parent
ddfb15ea4b
commit
2e46c3eafd
4 changed files with 14 additions and 6 deletions
|
|
@ -16,19 +16,19 @@ class Subscriber(client: RedisClient) extends Actor {
|
|||
def receive = {
|
||||
case Subscribe(channels) =>
|
||||
client.subscribe(channels.head, channels.tail: _*)(callback)
|
||||
self.reply(true)
|
||||
self.reply_?(true)
|
||||
|
||||
case Register(cb) =>
|
||||
callback = cb
|
||||
self.reply(true)
|
||||
self.reply_?(true)
|
||||
|
||||
case Unsubscribe(channels) =>
|
||||
client.unsubscribe(channels.head, channels.tail: _*)
|
||||
self.reply(true)
|
||||
self.reply_?(true)
|
||||
|
||||
case UnsubscribeAll =>
|
||||
client.unsubscribe
|
||||
self.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)
|
||||
self.reply(true)
|
||||
self.reply_?(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.redis</groupId>
|
||||
<artifactId>redisclient</artifactId>
|
||||
<version>2.8.0-2.0.2</version>
|
||||
<packaging>jar</packaging>
|
||||
</project>
|
||||
|
|
@ -217,7 +217,7 @@ class AkkaParentProject(info: ProjectInfo) extends DefaultProject(info) {
|
|||
|
||||
lazy val rabbit = "com.rabbitmq" % "amqp-client" % "1.8.1" % "compile"
|
||||
|
||||
lazy val redis = "com.redis" % "redisclient" % "2.8.0-2.0.1" % "compile"
|
||||
lazy val redis = "com.redis" % "redisclient" % "2.8.0-2.0.2" % "compile"
|
||||
|
||||
lazy val sbinary = "sbinary" % "sbinary" % "2.8.0-0.3.1" % "compile"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue