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

Method SendHeartBeatMsg

znet/heartbeat.go:127–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (h *HeartbeatChecker) SendHeartBeatMsg() error {
128
129 msg := h.makeMsg(h.conn)
130
131 err := h.conn.SendMsg(h.msgID, msg)
132 if err != nil {
133 zlog.Ins().ErrorF("send heartbeat msg error: %v, msgId=%+v msg=%+v", err, h.msgID, msg)
134 return err
135 }
136
137 return nil
138}
139
140func (h *HeartbeatChecker) check() (err error) {
141

Callers 1

checkMethod · 0.95

Calls 3

InsFunction · 0.92
SendMsgMethod · 0.65
ErrorFMethod · 0.65

Tested by

no test coverage detected