MCPcopy
hub / github.com/aceld/zinx / NotifyBuffAll

Method NotifyBuffAll

znotify/notify.go:103–114  ·  view source on GitHub ↗
(MsgId uint32, data []byte)

Source from the content-addressed store, hash-verified

101}
102
103func (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}

Callers

nothing calls this directly

Calls 4

InsFunction · 0.92
IterCbMethod · 0.80
SendBuffMsgMethod · 0.65
ErrorFMethod · 0.65

Tested by

no test coverage detected