pass order id for order store exists

This commit is contained in:
c9s 2020-11-17 08:53:22 +08:00
parent f4512f031c
commit cc3da5b678
2 changed files with 3 additions and 3 deletions

View File

@ -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()
defer s.mu.Unlock()
_, ok := s.orders[o.OrderID]
_, ok = s.orders[oID]
return ok
}

View File

@ -45,7 +45,7 @@ var BuildCmd = &cobra.Command{
return err
}
userConfig, err := bbgo.Load(configFile)
userConfig, err := bbgo.Preload(configFile)
if err != nil {
return err
}