MCPcopy Create free account
hub / github.com/dearcode/candy / addQueue

Method addQueue

store/msg.go:132–138  ·  view source on GitHub ↗

向未发送队列中添加记录

(id int64)

Source from the content-addressed store, hash-verified

130
131// 向未发送队列中添加记录
132func (m *messageDB) addQueue(id int64) error {
133 log.Debugf("id:%v", id)
134 key := util.EncodeInt64(id)
135
136 m.addRetry(id)
137 return m.queue.Put(key, []byte(""), nil)
138}
139
140func (m *messageDB) send(pm meta.PushMessage) error {
141 buf, err := json.Marshal(pm)

Callers 1

sendMethod · 0.95

Calls 1

addRetryMethod · 0.95

Tested by

no test coverage detected