删除:topic 消息写数据库

git-svn-id: svn://47.119.165.148/zhub@163 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2023-03-07 06:50:53 +00:00
parent 71565c9a6c
commit c4709e2529
2 changed files with 59 additions and 56 deletions

View File

@@ -80,9 +80,9 @@ func msgAccept(v Message) {
if len(rcmd) != 3 {
c.send("-Error: publish para number![" + strings.Join(rcmd, " ") + "]")
} else {
if len(topicChan) < cap(topicChan) {
/*if len(topicChan) < cap(topicChan) {
topicChan <- rcmd
}
}*/
zsub.Publish(rcmd[1], rcmd[2])
}
return
@@ -90,9 +90,9 @@ func msgAccept(v Message) {
if len(rcmd) != 3 {
c.send("-Error: publish para number![" + strings.Join(rcmd, " ") + "]")
} else {
if len(topicChan) < cap(topicChan) {
/*if len(topicChan) < cap(topicChan) {
topicChan <- rcmd
}
}*/
zsub.Publish(rcmd[1], rcmd[2])
}
return