mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
update state asset name for legacy caches
This commit is contained in:
parent
b4f6653ccc
commit
fad1e39bba
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user