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
b09356be
Commit
b09356be
authored
May 04, 2016
by
Hector Sanjuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update go-log to 1.1.0 and fix calls to go-log.Uuid
License: MIT Signed-off-by:
Hector Sanjuan
<
code@hector.link
>
parent
73b9a151
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
bitswap.go
bitswap.go
+6
-6
decision/engine.go
decision/engine.go
+1
-1
network/ipfs_impl.go
network/ipfs_impl.go
+1
-1
workers.go
workers.go
+1
-1
No files found.
bitswap.go
View file @
b09356be
...
...
@@ -8,6 +8,12 @@ import (
"sync"
"time"
process
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
procctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
logging
"gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log"
blocks
"github.com/ipfs/go-ipfs/blocks"
blockstore
"github.com/ipfs/go-ipfs/blocks/blockstore"
key
"github.com/ipfs/go-ipfs/blocks/key"
...
...
@@ -19,11 +25,6 @@ import (
wantlist
"github.com/ipfs/go-ipfs/exchange/bitswap/wantlist"
flags
"github.com/ipfs/go-ipfs/flags"
"github.com/ipfs/go-ipfs/thirdparty/delay"
process
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess"
procctx
"gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn/goprocess/context"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
logging
"gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH/go-log"
)
var
log
=
logging
.
Logger
(
"bitswap"
)
...
...
@@ -163,7 +164,6 @@ func (bs *Bitswap) GetBlock(parent context.Context, k key.Key) (*blocks.Block, e
ctx
,
cancelFunc
:=
context
.
WithCancel
(
parent
)
ctx
=
logging
.
ContextWithLoggable
(
ctx
,
logging
.
Uuid
(
"GetBlockRequest"
))
log
.
Event
(
ctx
,
"Bitswap.GetBlockRequest.Start"
,
&
k
)
defer
log
.
Event
(
ctx
,
"Bitswap.GetBlockRequest.End"
,
&
k
)
...
...
decision/engine.go
View file @
b09356be
...
...
@@ -10,7 +10,7 @@ import (
wl
"github.com/ipfs/go-ipfs/exchange/bitswap/wantlist"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
logging
"gx/ipfs/Qma
zh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH
/go-log"
logging
"gx/ipfs/Qma
DNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8
/go-log"
)
// TODO consider taking responsibility for other types of requests. For
...
...
network/ipfs_impl.go
View file @
b09356be
...
...
@@ -8,7 +8,7 @@ import (
inet
"gx/ipfs/QmXDvxcXUYn2DDnGKJwdQPxkJgG83jBTp5UmmNzeHzqbj5/go-libp2p/p2p/net"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
context
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
logging
"gx/ipfs/Qma
zh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH
/go-log"
logging
"gx/ipfs/Qma
DNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8
/go-log"
ma
"gx/ipfs/QmcobAGsCjYt5DXoq9et9L8yR8er7o7Cu3DTvpaq12jYSz/go-multiaddr"
)
...
...
workers.go
View file @
b09356be
...
...
@@ -11,7 +11,7 @@ import (
key
"github.com/ipfs/go-ipfs/blocks/key"
wantlist
"github.com/ipfs/go-ipfs/exchange/bitswap/wantlist"
peer
"gx/ipfs/QmZwZjMVGss5rqYsJVGy18gNbkTJffFyq2x1uJ4e4p3ZAt/go-libp2p-peer"
logging
"gx/ipfs/Qma
zh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH
/go-log"
logging
"gx/ipfs/Qma
DNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8
/go-log"
)
var
TaskWorkerCount
=
8
...
...
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