Merge pull request #268 from libp2p/fix-tracer-sendTo-field
set sendTo to remote peer id in trace events
This commit is contained in:
commit
fe350fd7b2
4
trace.go
4
trace.go
|
@ -165,7 +165,7 @@ func (t *pubsubTracer) SendRPC(rpc *RPC, p peer.ID) {
|
||||||
PeerID: []byte(t.pid),
|
PeerID: []byte(t.pid),
|
||||||
Timestamp: &now,
|
Timestamp: &now,
|
||||||
SendRPC: &pb.TraceEvent_SendRPC{
|
SendRPC: &pb.TraceEvent_SendRPC{
|
||||||
SendTo: []byte(rpc.from),
|
SendTo: []byte(p),
|
||||||
Meta: t.traceRPCMeta(rpc),
|
Meta: t.traceRPCMeta(rpc),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ func (t *pubsubTracer) DropRPC(rpc *RPC, p peer.ID) {
|
||||||
PeerID: []byte(t.pid),
|
PeerID: []byte(t.pid),
|
||||||
Timestamp: &now,
|
Timestamp: &now,
|
||||||
DropRPC: &pb.TraceEvent_DropRPC{
|
DropRPC: &pb.TraceEvent_DropRPC{
|
||||||
SendTo: []byte(rpc.from),
|
SendTo: []byte(p),
|
||||||
Meta: t.traceRPCMeta(rpc),
|
Meta: t.traceRPCMeta(rpc),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue