Skip to content

Commit

Permalink
fix a coding error in truncating sector log
Browse files Browse the repository at this point in the history
  • Loading branch information
zzx234234 authored and codefather-filestar committed Jul 1, 2021
1 parent 6f5c7b8 commit a4d704e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/storage-sealing/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (m *Sealing) logEvents(events []statemachine.Event, state *SectorInfo) {
Kind: fmt.Sprintf("truncate"),
}

state.Log = append(state.Log[:2000], state.Log[:6000]...)
state.Log = append(state.Log[:2000], state.Log[6000:]...)
}

state.Log = append(state.Log, l)
Expand Down

0 comments on commit a4d704e

Please sign in to comment.