Favoriting posts sometimes fails with ActiveRecord::LockWaitTimeout errors. This happens when a user tries to favorite multiple posts in short succession. In that case we want the lock to block and wait for the other favorite to go through, not to immediately fail.
1.6 KiB
1.6 KiB