mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-25 23:21:54 +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:
@ -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),
|
||||
|
@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user