mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 15:42:21 +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
|
}, 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
|
// GetNode returns the MDAG Node that this link points to
|
||||||
func (l *Link) GetNode(ctx context.Context, serv DAGService) (*Node, error) {
|
func (l *Link) GetNode(ctx context.Context, serv DAGService) (*Node, error) {
|
||||||
if l.node != nil {
|
if l.node != nil {
|
||||||
|
Reference in New Issue
Block a user