mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
add SyncService check
This commit is contained in:
parent
34fe915a9f
commit
2ec4617694
|
@ -533,6 +533,10 @@ func (environ *Environment) Sync(ctx context.Context) error {
|
|||
}
|
||||
|
||||
func (environ *Environment) SyncSession(ctx context.Context, session *ExchangeSession, defaultSymbols ...string) error {
|
||||
if environ.SyncService == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
environ.syncMutex.Lock()
|
||||
defer environ.syncMutex.Unlock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user