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
dms3
go-bitswap
Commits
f4350456
Commit
f4350456
authored
May 05, 2016
by
Hector Sanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore go-log.Uuid() calls as loggables.Uuid() calls
License: MIT Signed-off-by:
Hector Sanjuan
<
code@hector.link
>
parent
b09356be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bitswap.go
bitswap.go
+2
-0
No files found.
bitswap.go
View file @
f4350456
...
...
@@ -25,6 +25,7 @@ import (
wantlist
"github.com/ipfs/go-ipfs/exchange/bitswap/wantlist"
flags
"github.com/ipfs/go-ipfs/flags"
"github.com/ipfs/go-ipfs/thirdparty/delay"
loggables
"github.com/ipfs/go-ipfs/thirdparty/loggables"
)
var
log
=
logging
.
Logger
(
"bitswap"
)
...
...
@@ -164,6 +165,7 @@ func (bs *Bitswap) GetBlock(parent context.Context, k key.Key) (*blocks.Block, e
ctx
,
cancelFunc
:=
context
.
WithCancel
(
parent
)
ctx
=
logging
.
ContextWithLoggable
(
ctx
,
loggables
.
Uuid
(
"GetBlockRequest"
))
log
.
Event
(
ctx
,
"Bitswap.GetBlockRequest.Start"
,
&
k
)
defer
log
.
Event
(
ctx
,
"Bitswap.GetBlockRequest.End"
,
&
k
)
...
...
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