(ch chan *PushParams)
| 34 | } |
| 35 | |
| 36 | func (task *Task) processSinglePush(ch chan *PushParams) { |
| 37 | var arg *PushParams |
| 38 | for { |
| 39 | arg = <-ch |
| 40 | //@todo when arg.ServerId server is down, user could be reconnect other serverId but msg in queue no consume |
| 41 | task.pushSingleToConnect(arg.ServerId, arg.UserId, arg.Msg) |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (task *Task) Push(msg string) { |
| 46 | m := &proto.RedisMsg{} |
no test coverage detected