fix: rename generalorderexecutor.cancel to gracefulcancelorder

This commit is contained in:
zenix 2022-09-02 19:22:26 +09:00
parent ff7fd38372
commit 4a878b5596
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ func (e *GeneralOrderExecutor) GracefulCancelActiveOrderBook(ctx context.Context
return nil
}
func (e *GeneralOrderExecutor) Cancel(ctx context.Context, order types.Order) error {
func (e *GeneralOrderExecutor) GracefulCancelOrder(ctx context.Context, order types.Order) error {
if e.activeMakerOrders.NumOfOrders() == 0 {
return nil
}

View File

@ -187,7 +187,7 @@ func (s *Strategy) smartCancel(ctx context.Context, pricef float64) int {
panic("not supported side for the order")
}
if toCancel {
err := s.GeneralOrderExecutor.Cancel(ctx, order)
err := s.GeneralOrderExecutor.GracefulCancelOrder(ctx, order)
if err == nil {
delete(s.orderPendingCounter, order.OrderID)
} else {