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

blockservice.New doesnt need to return an error

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy
2015-08-14 16:25:51 -07:00
parent da75e92d5b
commit f209763357
15 changed files with 53 additions and 111 deletions

View File

@ -68,10 +68,7 @@ func NewMockNode() (*core.IpfsNode, error) {
// Bitswap
bstore := blockstore.NewBlockstore(nd.Repo.Datastore())
bserv, err := blockservice.New(bstore, offline.Exchange(bstore))
if err != nil {
return nil, err
}
bserv := blockservice.New(bstore, offline.Exchange(bstore))
nd.DAG = mdag.NewDAGService(bserv)