Skip to content

Commit

Permalink
pin: unexport NewIndirectPin, it's not useful and not used elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
tv42 committed May 11, 2015
1 parent 413664b commit a55f480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pin/indirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type indirectPin struct {
refCounts map[util.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[util.Key]int),
Expand Down
2 changes: 1 addition & 1 deletion pin/pin.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,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,
}
Expand Down

0 comments on commit a55f480

Please sign in to comment.