Skip to content

Commit 2ae8b1a

Browse files
committed
Address comment
1 parent 3282c75 commit 2ae8b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/actorstate/miner/sector_events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ func LoadSectorState(ctx context.Context, state miner.State) (*SectorStates, err
267267
_, span := otel.Tracer("").Start(ctx, "LoadSectorState")
268268
defer span.End()
269269

270-
sectorStates := &SectorStates{}
271270
activeSectors := []bitfield.BitField{}
272271
liveSectors := []bitfield.BitField{}
273272
faultySectors := []bitfield.BitField{}
@@ -306,6 +305,7 @@ func LoadSectorState(ctx context.Context, state miner.State) (*SectorStates, err
306305
return nil, err
307306
}
308307
var err error
308+
sectorStates := &SectorStates{}
309309
if sectorStates.Active, err = bitfield.MultiMerge(activeSectors...); err != nil {
310310
return nil, err
311311
}

0 commit comments

Comments
 (0)