populate receivedFrom field in delivery trace

This commit is contained in:
vyzo 2020-12-16 19:13:26 +02:00
parent 4f972a14dd
commit 352c6b993e
1 changed files with 3 additions and 2 deletions

View File

@ -154,8 +154,9 @@ func (t *pubsubTracer) DeliverMessage(msg *Message) {
PeerID: []byte(t.pid), PeerID: []byte(t.pid),
Timestamp: &now, Timestamp: &now,
DeliverMessage: &pb.TraceEvent_DeliverMessage{ DeliverMessage: &pb.TraceEvent_DeliverMessage{
MessageID: []byte(t.msgID(msg.Message)), MessageID: []byte(t.msgID(msg.Message)),
Topic: msg.Topic, Topic: msg.Topic,
ReceivedFrom: []byte(msg.ReceivedFrom),
}, },
} }