MCPcopy Create free account
hub / github.com/LockGit/gochat / processSinglePush

Method processSinglePush

task/push.go:36–43  ·  view source on GitHub ↗
(ch chan *PushParams)

Source from the content-addressed store, hash-verified

34}
35
36func (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
45func (task *Task) Push(msg string) {
46 m := &proto.RedisMsg{}

Callers 1

GoPushMethod · 0.95

Calls 1

pushSingleToConnectMethod · 0.95

Tested by

no test coverage detected