Commit 2f1cf9bf authored by Brian Tiger Chow's avatar Brian Tiger Chow

feat(bitswap) make offline exchange query datastore

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent ec4d6447
......@@ -19,9 +19,8 @@ import (
)
func TestBlocks(t *testing.T) {
d := ds.NewMapDatastore()
tsds := dssync.MutexWrap(d)
bs, err := New(blockstore.NewBlockstore(tsds), offline.Exchange())
bstore := blockstore.NewBlockstore(dssync.MutexWrap(ds.NewMapDatastore()))
bs, err := New(bstore, offline.Exchange(bstore))
if err != nil {
t.Error("failed to construct block service", err)
return
......
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