Commit f6018292 authored by Kevin Atkinson's avatar Kevin Atkinson

Separate out the G.C. Locking from the Blockstore interface.

Factored out of #3257 (Add support for multiple blockstores).

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent 3d356025
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment