Commit 89c7ed46 authored by vyzo's avatar vyzo

trace publish

parent 67275a63
......@@ -446,6 +446,7 @@ func (p *PubSub) processLoop(ctx context.Context) {
p.handleIncomingRPC(rpc)
case msg := <-p.publish:
p.tracer.PublishMessage(msg)
p.pushMsg(msg)
case msg := <-p.sendMsg:
......
......@@ -14,6 +14,12 @@ type pubsubTracer struct {
tracer EventTracer
}
func (t *pubsubTracer) PublishMessage(msg *Message) {
if t != nil {
// TODO
}
}
func (t *pubsubTracer) RejectMessage(msg *Message, reason string) {
if t != nil {
// TODO
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment