fix
This commit is contained in:
@@ -273,16 +273,16 @@ func sendToOutChanByUserIndex(userId, guestId int64, message []byte) {
|
||||
}
|
||||
|
||||
// 消费用户索引创建/删除/发送消息中的任务数据
|
||||
func ConsumeUserPoolData(ctx context.Context) {
|
||||
func ConsumeUserConnPoolCtlChanData(ctx context.Context) {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
logx.Error("consumeUserPoolData panic:", err)
|
||||
logx.Error("ConsumeUserConnPoolCtlChanData panic:", err)
|
||||
}
|
||||
}()
|
||||
go func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
panic("ConsumeUserPoolData ctx deadline")
|
||||
panic("ConsumeUserConnPoolCtlChanData ctx deadline")
|
||||
}
|
||||
}()
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user