mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-15 07:58:15 +08:00
blockservice.New doesnt need to return an error
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -25,10 +25,7 @@ import (
|
||||
func getDagserv(t *testing.T) merkledag.DAGService {
|
||||
db := dssync.MutexWrap(ds.NewMapDatastore())
|
||||
bs := bstore.NewBlockstore(db)
|
||||
blockserv, err := bserv.New(bs, offline.Exchange(bs))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
blockserv := bserv.New(bs, offline.Exchange(bs))
|
||||
return merkledag.NewDAGService(blockserv)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user