新增:延时事件持久化

git-svn-id: svn://47.119.165.148/zhub@101 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-02-06 08:10:01 +00:00
parent fb93177de7
commit 0aa0abb762
5 changed files with 130 additions and 33 deletions

View File

@@ -21,9 +21,10 @@ func (g *ZGroup) appendTo(c *ZConn) {
return
}
// create new goroutine consumer message
c.substoped[topic] = make(chan int, 0)
c.appendTo(g.conns)
go func() { // create new goroutine consumer message
go func() {
for {
select {
case msg, ok := <-g.chMsg: