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
89c7ed46
Commit
89c7ed46
authored
Nov 04, 2019
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace publish
parent
67275a63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
pubsub.go
pubsub.go
+1
-0
trace.go
trace.go
+6
-0
No files found.
pubsub.go
View file @
89c7ed46
...
...
@@ -446,6 +446,7 @@ func (p *PubSub) processLoop(ctx context.Context) {
p.handleIncomingRPC(rpc)
case msg := <-p.publish:
p.tracer.PublishMessage(msg)
p.pushMsg(msg)
case msg := <-p.sendMsg:
...
...
trace.go
View file @
89c7ed46
...
...
@@ -14,6 +14,12 @@ type pubsubTracer struct {
tracer
EventTracer
}
func
(
t
*
pubsubTracer
)
PublishMessage
(
msg
*
Message
)
{
if
t
!=
nil
{
// TODO
}
}
func
(
t
*
pubsubTracer
)
RejectMessage
(
msg
*
Message
,
reason
string
)
{
if
t
!=
nil
{
// TODO
...
...
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