Skip to content

Commit

Permalink
fix: Fix unseal status on the sector page (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k authored Jan 13, 2025
1 parent 82f972b commit 59c7a4f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions web/api/webrpc/sector.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type SectorInfo struct {
UpdatedSealedCid string
IsSnap bool
UpdateMsg string
UnsealedState bool
UnsealedState *bool
HasUnsealed bool

PipelinePoRep *sectorListEntry
Expand Down Expand Up @@ -454,9 +454,7 @@ func (a *WebRPC) SectorInfo(ctx context.Context, sp string, intid int64) (*Secto
p := *sectormeta.Partition
si.Partition = &p
}
if sectormeta.UnsealedState != nil {
si.UnsealedState = *sectormeta.UnsealedState
}
si.UnsealedState = sectormeta.UnsealedState
}

var pieces []SectorPieceMeta
Expand Down

0 comments on commit 59c7a4f

Please sign in to comment.