mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
make path resolver no longer require whole node for construction
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func Cat(ctx context.Context, n *core.IpfsNode, pstr string) (*uio.DagReader, error) {
|
||||
dagNode, err := core.Resolve(ctx, n, path.Path(pstr))
|
||||
dagNode, err := core.Resolve(ctx, n.Namesys, n.Resolver, path.Path(pstr))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user