mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
Merge pull request #691 from c9s/fix/sync-time
fix: fix sync since time field check
This commit is contained in:
commit
4fdee25a96
|
@ -587,7 +587,10 @@ func (environ *Environment) syncWithUserConfig(ctx context.Context, userConfig *
|
|||
sessions = environ.SelectSessions(selectedSessions...)
|
||||
}
|
||||
|
||||
since := userConfig.Sync.Since.Time()
|
||||
since := time.Now().AddDate(0, -6, 0)
|
||||
if userConfig.Sync.Since != nil {
|
||||
since = userConfig.Sync.Since.Time()
|
||||
}
|
||||
|
||||
for _, session := range sessions {
|
||||
if err := environ.syncSession(ctx, session, syncSymbols...); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user