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:
@ -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{
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user