1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 05:52:20 +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

@ -241,7 +241,7 @@ func (r *Root) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) {
continue
}
ent := fuse.Dirent{
Name: key.Key(hash).Pretty(),
Name: key.Key(hash).B58String(),
Type: fuse.DT_Dir,
}
link := fuse.Dirent{

View File

@ -171,7 +171,7 @@ func (s *Node) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadR
// setup our logging event
lm := make(lgbl.DeferredMap)
lm["fs"] = "ipfs"
lm["key"] = func() interface{} { return k.Pretty() }
lm["key"] = func() interface{} { return k.B58String() }
lm["req_offset"] = req.Offset
lm["req_size"] = req.Size
defer log.EventBegin(ctx, "fuseRead", lm).Done()