修改: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

@@ -149,8 +149,8 @@ func (c *Client) Broadcast(topic string, message string) error {
return c.send("broadcast", topic, message)
}
func (c *Client) Daly(topic string, message string, daly int) error {
return c.send("daly", topic, message, strconv.Itoa(daly))
func (c *Client) Delay(topic string, message string, delay int) error {
return c.send("delay", topic, message, strconv.Itoa(delay))
}
/*func (c *Client) Timer(topic string, expr string, fun func()) {
@@ -264,9 +264,9 @@ func (c *Client) receive() {
c.timerReceive <- vs
continue
}
/*if len(vs) == 2 && strings.EqualFold(vs[0], "daly") {
c.dalyFun[vs[1]]()
delete(c.dalyFun, vs[1])
/*if len(vs) == 2 && strings.EqualFold(vs[0], "delay") {
c.delayFun[vs[1]]()
delete(c.delayFun, vs[1])
continue
}*/