mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
Merge pull request #6222 from ipfs/fix/dht-321
test(coreapi): use a thread-safe datastore everywhere
This commit is contained in:
commit
a5066255d7
@ -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())),
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user