mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-02 17:22:42 +08:00
Separate out the G.C. Locking from the Blockstore interface.
Factored out of #3257 (Add support for multiple blockstores). License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
@ -22,7 +22,7 @@ import (
|
||||
"gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore/sync"
|
||||
)
|
||||
|
||||
func getMockDagServAndBstore(t testing.TB) (mdag.DAGService, blockstore.GCBlockstore) {
|
||||
func getMockDagServAndBstore(t testing.TB) (mdag.DAGService, blockstore.Blockstore) {
|
||||
dstore := ds.NewMapDatastore()
|
||||
tsds := sync.MutexWrap(dstore)
|
||||
bstore := blockstore.NewBlockstore(tsds)
|
||||
|
Reference in New Issue
Block a user