mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
fix since time field check
This commit is contained in:
parent
cca813e5e5
commit
fb5fc02bdf
|
@ -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