mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
For the rest of the packages in util, move them to thirdparty and update the references. util is gone! License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
12 lines
391 B
Go
12 lines
391 B
Go
package testutil
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore"
|
|
syncds "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore/sync"
|
|
ds2 "github.com/ipfs/go-ipfs/thirdparty/datastore2"
|
|
)
|
|
|
|
func ThreadSafeCloserMapDatastore() ds2.ThreadSafeDatastoreCloser {
|
|
return ds2.CloserWrap(syncds.MutexWrap(datastore.NewMapDatastore()))
|
|
}
|