Return none when draining new orders and returning an empty vec #180
Labels
C-debt
Technical debt items that need to be addressed to improve code quality or maintainability
good first issue
Good for newcomers
invalid
This doesn't seem right
IMO
drain_new_orders()
should return None if it has an empty vector. It's not very intuitive to me that it can return Some with an empty vector, which lead to a bug when integrating with a new algorithm.Here's the relevant code.
The text was updated successfully, but these errors were encountered: