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
352c6b99
Commit
352c6b99
authored
Dec 16, 2020
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
populate receivedFrom field in delivery trace
parent
4f972a14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
trace.go
trace.go
+3
-2
No files found.
trace.go
View file @
352c6b99
...
...
@@ -154,8 +154,9 @@ func (t *pubsubTracer) DeliverMessage(msg *Message) {
PeerID: []
byte
(t.pid),
Timestamp: &now,
DeliverMessage: &pb.TraceEvent_DeliverMessage{
MessageID: []
byte
(t.msgID(msg.Message)),
Topic: msg.Topic,
MessageID: []
byte
(t.msgID(msg.Message)),
Topic: msg.Topic,
ReceivedFrom: []
byte
(msg.ReceivedFrom),
},
}
...
...
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