cluster sub

This commit is contained in:
zhouyuyan
2017-09-07 14:32:01 +08:00
parent 34378164e0
commit ae1af54c6e
2 changed files with 28 additions and 45 deletions

View File

@@ -403,7 +403,7 @@ func (b *Broker) removeClient(c *client) {
// log.Info("delete client ,", clientId)
}
func (b *Broker) ProcessPublishMessage(packet *packets.PublishPacket) {
func (b *Broker) PublishMessage(packet *packets.PublishPacket) {
topic := packet.TopicName
r := b.sl.Match(topic)
// log.Info("psubs num: ", len(r.psubs))