mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
pass order id for order store exists
This commit is contained in:
parent
f4512f031c
commit
cc3da5b678
|
@ -18,11 +18,11 @@ func NewOrderStore() *OrderStore {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *OrderStore) Exists(o types.Order) bool {
|
func (s *OrderStore) Exists(oID uint64) (ok bool) {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
defer s.mu.Unlock()
|
defer s.mu.Unlock()
|
||||||
|
|
||||||
_, ok := s.orders[o.OrderID]
|
_, ok = s.orders[oID]
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ var BuildCmd = &cobra.Command{
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
userConfig, err := bbgo.Load(configFile)
|
userConfig, err := bbgo.Preload(configFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user