Unverified Commit fe350fd7 authored by vyzo's avatar vyzo Committed by GitHub

Merge pull request #268 from libp2p/fix-tracer-sendTo-field

set sendTo to remote peer id in trace events
parents 1f147c24 a4d562cb
......@@ -165,7 +165,7 @@ func (t *pubsubTracer) SendRPC(rpc *RPC, p peer.ID) {
PeerID: []byte(t.pid),
Timestamp: &now,
SendRPC: &pb.TraceEvent_SendRPC{
SendTo: []byte(rpc.from),
SendTo: []byte(p),
Meta: t.traceRPCMeta(rpc),
},
}
......@@ -184,7 +184,7 @@ func (t *pubsubTracer) DropRPC(rpc *RPC, p peer.ID) {
PeerID: []byte(t.pid),
Timestamp: &now,
DropRPC: &pb.TraceEvent_DropRPC{
SendTo: []byte(rpc.from),
SendTo: []byte(p),
Meta: t.traceRPCMeta(rpc),
},
}
......
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