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

set sendTo to remote peer id in trace events
This commit is contained in:
vyzo 2020-03-16 17:42:05 +02:00 committed by GitHub
commit fe350fd7b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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),
},
}