Skip to content

Refactor OrdersCapacityService to improve capacity handling and error...

chao.zhang requested to merge main into test

Refactor OrdersCapacityService to improve capacity handling and error management. Introduced error handling for capacity queries and updates, added retry logic for optimistic locking, and enhanced logging to include orderId for better traceability in ReturnCapacity, ConfirmCapacity, and LockCapacity methods. Streamlined the process of creating sold and lock records, ensuring robust handling of insufficient capacity scenarios.

Merge request reports