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

convert DAGService to an interface

This commit is contained in:
Emery Hemingway
2014-10-25 22:15:19 -04:00
parent 39316a210f
commit 056699cebe
11 changed files with 91 additions and 32 deletions

View File

@ -15,7 +15,7 @@ var log = u.Logger("path")
// Resolver provides path resolution to IPFS
// It has a pointer to a DAGService, which is uses to resolve nodes.
type Resolver struct {
DAG *merkledag.DAGService
DAG merkledag.DAGService
}
// ResolvePath fetches the node for given path. It uses the first