修复子节点不能先注册的问题

This commit is contained in:
yaziming
2020-06-02 15:32:25 +08:00
parent 93c06d0464
commit eed50ba38f
4 changed files with 24 additions and 32 deletions

View File

@@ -39,8 +39,6 @@ func (r *Redis) subscribe(ctx context.Context, consume ConsumeFunc, channel ...s
continue
}
case redis.Subscription:
fmt.Println(msg)
if msg.Count == 0 {
// all channels are unsubscribed
return