MCPcopy Create free account
hub / github.com/33cn/chain33 / notify

Method notify

client/queueprotocol.go:87–95  ·  view source on GitHub ↗
(topic string, ty int64, data interface{})

Source from the content-addressed store, hash-verified

85}
86
87func (q *QueueProtocol) notify(topic string, ty int64, data interface{}) (*queue.Message, error) {
88 client := q.client
89 msg := client.NewMessage(topic, ty, data)
90 err := client.SendTimeout(msg, false, q.option.SendTimeout)
91 if err != nil {
92 return &queue.Message{}, err
93 }
94 return msg, err
95}
96
97// Notify new and send client message
98func (q *QueueProtocol) Notify(topic string, ty int64, data interface{}) (*queue.Message, error) {

Callers 1

NotifyMethod · 0.95

Calls 2

NewMessageMethod · 0.65
SendTimeoutMethod · 0.65

Tested by

no test coverage detected