1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 17:22:21 +08:00

Move IPNS resolutions into the core library

Move IPNS resolutions into the core library via the pathresolver.go
file. Fix the CLI commands to leverage this core component.
This commit is contained in:
gatesvp
2015-04-20 00:37:17 -07:00
committed by Juan Batiz-Benet
parent 7bba80041c
commit 31ff954539
10 changed files with 66 additions and 26 deletions

View File

@ -345,10 +345,6 @@ func (n *IpfsNode) OnlineMode() bool {
}
}
func (n *IpfsNode) Resolve(fpath string) (*merkledag.Node, error) {
return n.Resolver.ResolvePath(path.Path(fpath))
}
func (n *IpfsNode) Bootstrap(cfg BootstrapConfig) error {
// TODO what should return value be when in offlineMode?