Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return a fresh pointer from orderstore.getByDetail
This protects the order.Details in the store from direct access. The use-case was to allow the returned objects to be references so that future changes to them would be reflected. However we're not ready yet to allow people to touch the orders directly, because they're not protected directly by a mutex, and nothing would stop consumers contaminating the integrity of the data. We can revisit this topic later atomicly, but it's definitely tangental to the cause of action for PR thrasher-corp#1336.