Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/swap: avoid deadlock with maker redeem ack
When deleting a match after receiving the maker's redeem ack (of the taker's redeem), do not violate established lock ordering of Swapper.matchMtx and matchTracker.mtx. This deals with the matchMtx prior to locking the matchTracker, avoiding a possible deadlock with another goroutine locking these.
- Loading branch information