Unverified 提交 a5066255 作者: Steven Allen 提交者: GitHub

Merge pull request #6222 from ipfs/fix/dht-321

test(coreapi): use a thread-safe datastore everywhere
......@@ -71,10 +71,10 @@ func (NodeProvider) MakeAPISwarm(ctx context.Context, fullIdentity bool, n int)
c.Identity = ident
c.Experimental.FilestoreEnabled = true
ds := datastore.NewMapDatastore()
ds := syncds.MutexWrap(datastore.NewMapDatastore())
r := &repo.Mock{
C: c,
D: syncds.MutexWrap(ds),
D: ds,
K: keystore.NewMemKeystore(),
F: filestore.NewFileManager(ds, filepath.Dir(os.TempDir())),
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论