Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#4742 from ipfs/gx/go-datastore
Browse files Browse the repository at this point in the history
Update to latest go-datastore. Remove thirdparty/datastore2

This commit was moved from ipfs/kubo@3f6519b
  • Loading branch information
whyrusleeping authored Mar 28, 2018
2 parents 5fe80b7 + 1505924 commit 91cedd5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gateway/core/corehttp/gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import (
path "github.com/ipfs/go-ipfs/path"
repo "github.com/ipfs/go-ipfs/repo"
config "github.com/ipfs/go-ipfs/repo/config"
ds2 "github.com/ipfs/go-ipfs/thirdparty/datastore2"

id "gx/ipfs/QmNh1kGFFdsPu79KNSaL4NUKUPb4Eiz4KHdMtFY6664RDp/go-libp2p/p2p/protocol/identify"
datastore "gx/ipfs/QmXRKBQA4wXP7xWbFiZsR1GP4HV6wMDQ1aWFxZZ4uBcPX9/go-datastore"
syncds "gx/ipfs/QmXRKBQA4wXP7xWbFiZsR1GP4HV6wMDQ1aWFxZZ4uBcPX9/go-datastore/sync"
ci "gx/ipfs/QmaPbCnUMBohSGo3KnxEa2bHqyJVVeEEcwtqJAYxerieBo/go-libp2p-crypto"
)

Expand Down Expand Up @@ -57,7 +58,7 @@ func newNodeWithMockNamesys(ns mockNamesys) (*core.IpfsNode, error) {
}
r := &repo.Mock{
C: c,
D: ds2.ThreadSafeCloserMapDatastore(),
D: syncds.MutexWrap(datastore.NewMapDatastore()),
}
n, err := core.NewNode(context.Background(), &core.BuildCfg{Repo: r})
if err != nil {
Expand Down

0 comments on commit 91cedd5

Please sign in to comment.