(MsgId uint32, data []byte)
| 101 | } |
| 102 | |
| 103 | func (n *notify) NotifyBuffAll(MsgId uint32, data []byte) error { |
| 104 | |
| 105 | n.connIdMap.IterCb(func(key string, v interface{}) { |
| 106 | conn, _ := v.(ziface.IConnection) |
| 107 | err := conn.SendBuffMsg(MsgId, data) |
| 108 | if err != nil { |
| 109 | zlog.Ins().ErrorF("Notify to %s err:%s \n", key, err) |
| 110 | } |
| 111 | }) |
| 112 | |
| 113 | return nil |
| 114 | } |
nothing calls this directly
no test coverage detected