mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
fix FindLinks comment
This commit is contained in:
parent
70283151f2
commit
d54c6eb46b
@ -290,8 +290,8 @@ func FetchGraph(ctx context.Context, root *Node, serv DAGService) chan struct{}
|
||||
return done
|
||||
}
|
||||
|
||||
// Searches this nodes links for one to the given key,
|
||||
// returns the index of said link
|
||||
// FindLinks searches this nodes links for the given key,
|
||||
// returns the indexes of any links pointing to it
|
||||
func FindLinks(n *Node, k u.Key) []int {
|
||||
var out []int
|
||||
for i, lnk := range n.Links {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user