storage: Referance path struct by pointer

This commit is contained in:
Łukasz Magiera 2020-03-09 20:41:05 +01:00
parent 01087e01d2
commit b3d8273a03

View File

@ -24,7 +24,7 @@ type storage struct {
localLk sync.RWMutex
localStorage LocalStorage
paths []path
paths []*path
}
type path struct {
@ -49,7 +49,7 @@ func (st *storage) openPath(p string) error {
// TODO: Check existing / dedupe
out := path{
out := &path{
meta: meta,
local: p,
sectors: map[abi.SectorID]sectorbuilder.SectorFileType{},