mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-31 01:47:00 +08:00
- Modified Godeps/Godeps.json by hand - [TEST] Updated welcome docs hash to sharness - [TEST] Updated contact doc - [TEST] disabled breaking test (t0080-repo refs local)
12 lines
389 B
Go
12 lines
389 B
Go
package testutil
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
|
|
syncds "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore/sync"
|
|
ds2 "github.com/ipfs/go-ipfs/util/datastore2"
|
|
)
|
|
|
|
func ThreadSafeCloserMapDatastore() ds2.ThreadSafeDatastoreCloser {
|
|
return ds2.CloserWrap(syncds.MutexWrap(datastore.NewMapDatastore()))
|
|
}
|