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:
@ -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
|
||||
|
Reference in New Issue
Block a user