1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 15:42:21 +08:00

pin: unexport NewIndirectPin, it's not useful and not used elsewhere

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Tommi Virtanen
2015-05-06 16:17:13 -07:00
committed by Jeromy
parent 5b96d4d6b8
commit d586a3a05a
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ type indirectPin struct {
refCounts map[key.Key]int
}
func NewIndirectPin(dstore ds.Datastore) *indirectPin {
func newIndirectPin(dstore ds.Datastore) *indirectPin {
return &indirectPin{
blockset: set.NewDBWrapperSet(dstore, set.NewSimpleBlockSet()),
refCounts: make(map[key.Key]int),

View File

@ -75,7 +75,7 @@ func NewPinner(dstore ds.ThreadSafeDatastore, serv mdag.DAGService) Pinner {
return &pinner{
recursePin: rcset,
directPin: dirset,
indirPin: NewIndirectPin(nsdstore),
indirPin: newIndirectPin(nsdstore),
dserv: serv,
dstore: dstore,
}