mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
fix default sync logic
This commit is contained in:
parent
faccc64377
commit
2bdcf2266d
|
@ -623,6 +623,10 @@ func (environ *Environment) Sync(ctx context.Context, userConfig ...*Config) err
|
|||
return err
|
||||
}
|
||||
|
||||
if len(userConfig) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
if userConfig[0].Sync.DepositHistory {
|
||||
if err := environ.SyncService.SyncDepositHistory(ctx, session.Exchange); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue
Block a user