storage: set sector state correctly

This commit is contained in:
Łukasz Magiera
2019-12-09 14:32:58 +01:00
parent 0efc625405
commit f29e1eacff
+1 -1
View File
@@ -40,7 +40,7 @@ func (u *sectorUpdate) state(m func(*SectorInfo)) *sectorUpdate {
}
func (u *sectorUpdate) to(newState api.SectorState) *sectorUpdate {
u.nonce = newState
u.newState = newState
return u
}