xmaker: add todo note

This commit is contained in:
c9s 2024-08-26 18:37:02 +08:00
parent 7367ea73b8
commit e3079c134c
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -928,6 +928,7 @@ func (s *Strategy) CrossRun(
}
})
// TODO: remove this nil value behavior, check all OnProfit usage and remove the EmitProfit call with nil profit
s.tradeCollector.OnProfit(func(trade types.Trade, profit *types.Profit) {
if profit != nil {
if s.CircuitBreaker != nil {