mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
Remove GetCachedNode()
License: MIT Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
This commit is contained in:
@ -76,11 +76,6 @@ func MakeLink(n *Node) (*Link, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// GetCachedNode returns the MDAG Node that was cached, or nil
|
||||
func (l *Link) GetCachedNode() *Node {
|
||||
return l.node
|
||||
}
|
||||
|
||||
// GetNode returns the MDAG Node that this link points to
|
||||
func (l *Link) GetNode(ctx context.Context, serv DAGService) (*Node, error) {
|
||||
if l.node != nil {
|
||||
|
Reference in New Issue
Block a user