(addr string, ids []*meta.PushID, msg *meta.PushMessage)
| 39 | } |
| 40 | |
| 41 | func (g *gate) notice(addr string, ids []*meta.PushID, msg *meta.PushMessage) error { |
| 42 | c, err := g.getClient(addr) |
| 43 | if err != nil { |
| 44 | return errors.Trace(err) |
| 45 | } |
| 46 | req := &meta.GatePushRequest{ID: ids, Msg: msg} |
| 47 | resp, err := c.Push(context.Background(), req) |
| 48 | if err != nil { |
| 49 | return errors.Trace(err) |
| 50 | } |
| 51 | |
| 52 | return resp.Header.Error() |
| 53 | } |