1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 09:52:20 +08:00

feat(bitswap) make offline exchange query datastore

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-11-26 16:55:28 -08:00
parent 43ff3c5040
commit 670d0244b4
8 changed files with 101 additions and 29 deletions

View File

@ -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