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
9fac2f30
Commit
9fac2f30
authored
Dec 16, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Dec 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(test): nil Blockstore
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
b88f0394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
strategy/ledgermanager_test.go
strategy/ledgermanager_test.go
+5
-3
No files found.
strategy/ledgermanager_test.go
View file @
9fac2f30
...
...
@@ -4,9 +4,11 @@ import (
"strings"
"testing"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
context
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
ds
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
sync
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
blocks
"github.com/jbenet/go-ipfs/blocks"
blockstore
"github.com/jbenet/go-ipfs/blocks/blockstore"
message
"github.com/jbenet/go-ipfs/exchange/bitswap/message"
peer
"github.com/jbenet/go-ipfs/peer"
testutil
"github.com/jbenet/go-ipfs/util/testutil"
...
...
@@ -21,7 +23,7 @@ func newPeerAndLedgermanager(idStr string) peerAndLedgermanager {
return
peerAndLedgermanager
{
Peer
:
testutil
.
NewPeerWithIDString
(
idStr
),
//Strategy: New(true),
ls
:
NewLedgerManager
(
nil
,
context
.
TODO
()),
ls
:
NewLedgerManager
(
blockstore
.
NewBlockstore
(
sync
.
MutexWrap
(
ds
.
NewMapDatastore
()))
,
context
.
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