From a4d562cb834eaf06acf131e83de770c611d3874e Mon Sep 17 00:00:00 2001 From: Yusef Napora Date: Sun, 15 Mar 2020 21:00:39 -0400 Subject: [PATCH] set sendTo to remote peer id in trace events --- trace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trace.go b/trace.go index 1f980536..bfddcaf2 100644 --- a/trace.go +++ b/trace.go @@ -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), }, }