Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
fe350fd7
Unverified
Commit
fe350fd7
authored
Mar 16, 2020
by
vyzo
Committed by
GitHub
Mar 16, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #268 from libp2p/fix-tracer-sendTo-field
set sendTo to remote peer id in trace events
parents
1f147c24
a4d562cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trace.go
trace.go
+2
-2
No files found.
trace.go
View file @
fe350fd7
...
...
@@ -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
),
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment