This commit is contained in:
lxy
2020-11-13 18:23:23 +08:00
parent 1603140c1c
commit 9138790fd2
6 changed files with 22 additions and 16 deletions

View File

@@ -40,10 +40,10 @@ public abstract class RedisConsumer extends AbstractConsumer implements IConsume
writer.flush();
StringBuffer buf = new StringBuffer("SUBSCRIBE");
for (String topic : getSubscribes()) {
for (String topic : getTopics()) {
buf.append(" ").append(topic);
}
buf.append(" _\r\n");
buf.append("\r\n");
writer.write(buf.toString());
writer.flush();