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
|
localLk sync.RWMutex
|
||||||
localStorage LocalStorage
|
localStorage LocalStorage
|
||||||
|
|
||||||
paths []path
|
paths []*path
|
||||||
}
|
}
|
||||||
|
|
||||||
type path struct {
|
type path struct {
|
||||||
@ -49,7 +49,7 @@ func (st *storage) openPath(p string) error {
|
|||||||
|
|
||||||
// TODO: Check existing / dedupe
|
// TODO: Check existing / dedupe
|
||||||
|
|
||||||
out := path{
|
out := &path{
|
||||||
meta: meta,
|
meta: meta,
|
||||||
local: p,
|
local: p,
|
||||||
sectors: map[abi.SectorID]sectorbuilder.SectorFileType{},
|
sectors: map[abi.SectorID]sectorbuilder.SectorFileType{},
|
||||||
|
Loading…
Reference in New Issue
Block a user