update state asset name for legacy caches

This commit is contained in:
c9s 2021-05-16 01:22:55 +08:00
parent b4f6653ccc
commit fad1e39bba

View File

@ -306,6 +306,9 @@ func (s *Strategy) LoadState() error {
// we loaded it successfully
s.state = &state
// update Asset name for legacy caches
s.state.Asset = s.Asset
log.Infof("%s %s state is restored: %+v", ID, s.Asset, s.state)
s.Notifiability.Notify("%s %s state is restored", ID, s.Asset, s.state)
}