1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-19 16:06:45 +08:00

clean deprecated Key.Pretty()

License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
This commit is contained in:
Michael Muré
2016-03-20 17:07:25 +01:00
parent 2b6da0c024
commit c88e46cb52
12 changed files with 17 additions and 23 deletions

View File

@ -323,7 +323,7 @@ func (adder *Adder) addNode(node *dag.Node, path string) error {
return err
}
path = key.Pretty()
path = key.B58String()
}
dir := gopath.Dir(path)
@ -479,7 +479,7 @@ func getOutput(dagnode *dag.Node) (*Object, error) {
}
output := &Object{
Hash: key.Pretty(),
Hash: key.B58String(),
Links: make([]Link, len(dagnode.Links)),
}