forked from TrueCloudLab/frostfs-node
[#288] pilorama: Remove getMeta() wrapper
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
0045f1bcd4
commit
291f9e809a
2 changed files with 1 additions and 6 deletions
|
@ -142,7 +142,7 @@ func (f *memoryForest) TreeGetMeta(_ context.Context, cid cid.ID, treeID string,
|
|||
return Meta{}, 0, ErrTreeNotFound
|
||||
}
|
||||
|
||||
return s.getMeta(nodeID), s.infoMap[nodeID].Parent, nil
|
||||
return s.infoMap[nodeID].Meta, s.infoMap[nodeID].Parent, nil
|
||||
}
|
||||
|
||||
// TreeGetChildren implements the Forest interface.
|
||||
|
|
|
@ -204,8 +204,3 @@ func (t tree) getByPath(attr string, path []string, latest bool) []Node {
|
|||
|
||||
return nodes
|
||||
}
|
||||
|
||||
// getMeta returns meta information of node n.
|
||||
func (t tree) getMeta(n Node) Meta {
|
||||
return t.infoMap[n].Meta
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue