修改:delay 代词拼写错误

git-svn-id: svn://47.119.165.148/zhub@96 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-02-01 11:37:51 +00:00
parent 8e1074e461
commit 8fd6eea28e
4 changed files with 12 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ func msgAccept(v Message) {
return false
}
arr := []string{"subscribe", "unsubscribe", "daly", "groupid"}
arr := []string{"subscribe", "unsubscribe", "delay", "groupid"}
if startWithAny(rcmd[0], arr...) {
rcmd = strings.Split(rcmd[0], " ")
} else {
@@ -69,8 +69,8 @@ func msgAccept(v Message) {
}
case "broadcast":
zsub.broadcast(rcmd[1], rcmd[2])
case "daly":
zsub.daly(rcmd, c)
case "delay":
zsub.delay(rcmd, c)
case "timer":
zsub.timer(rcmd, c)
case "cmd":
@@ -87,8 +87,8 @@ func msgAccept(v Message) {
}
}
// daly topic value 100 -> publish topic value
func (s *ZSub) daly(rcmd []string, c *ZConn) {
// delay topic value 100 -> publish topic value
func (s *ZSub) delay(rcmd []string, c *ZConn) {
s.Lock()
defer s.Unlock()
if len(rcmd) != 4 {

View File

@@ -149,7 +149,7 @@ func (s *ZSub) close(c *ZConn) {
s.unsubscribe(c, topic)
}
// daly
// delay
// timer conn close
s.Lock()