storage: Referance path struct by pointer
This commit is contained in:
parent
01087e01d2
commit
b3d8273a03
@ -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{},
|
||||
|
Loading…
Reference in New Issue
Block a user