mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-23 05:35:58 +08:00
integrate CIDv0
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
@ -53,16 +53,12 @@ represent it.
|
||||
return
|
||||
}
|
||||
|
||||
k, err := node.Key()
|
||||
if err != nil {
|
||||
res.SetError(err, cmds.ErrNormal)
|
||||
return
|
||||
}
|
||||
c := node.Cid()
|
||||
|
||||
fi.FileName()
|
||||
res.SetOutput(&coreunix.AddedObject{
|
||||
Name: fi.FileName(),
|
||||
Hash: k.B58String(),
|
||||
Hash: c.String(),
|
||||
})
|
||||
},
|
||||
Type: coreunix.AddedObject{},
|
||||
|
Reference in New Issue
Block a user