mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
merkledag: make Link.Node (the node cache) a private field
License: MIT Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
This commit is contained in:
@ -11,10 +11,10 @@ import (
|
||||
"sort"
|
||||
"unsafe"
|
||||
|
||||
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
"github.com/ipfs/go-ipfs/blocks/key"
|
||||
"github.com/ipfs/go-ipfs/merkledag"
|
||||
"github.com/ipfs/go-ipfs/pin/internal/pb"
|
||||
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
|
||||
"gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt/go-net/context"
|
||||
)
|
||||
|
||||
@ -172,7 +172,6 @@ func storeItems(ctx context.Context, dag merkledag.DAGService, estimatedLen uint
|
||||
Name: "",
|
||||
Hash: childKey.ToMultihash(),
|
||||
Size: size,
|
||||
Node: child,
|
||||
}
|
||||
n.Links[int(h%defaultFanout)] = l
|
||||
}
|
||||
|
Reference in New Issue
Block a user